GIF to MP4

GIF to MP4 Converter

Free online GIF to MP4 converter. Convert animated GIFs to video format.

Drop your GIF file here

or click to browse

Loading converter...

Why convert GIF to MP4

Better Quality

MP4 supports millions of colors instead of GIF's 256, so gradients show less banding and dithering.

Smaller Files

With Loop off at Low quality, our pixel-art test MP4 was 72.6% smaller than the GIF.

100% Private

Your GIFs never leave your device. All processing is local.

Broad Compatibility

MP4 plays on most social platforms, messaging apps and video players.

Ready for Video Editors

The MP4 is a standard H.264 video track with no audio, so you can drop it into standard video editors and apps and add music or a voice-over.

Loop Control

Repeat the animation inside the MP4 from 1 to 10 times, for players that do not loop.

How It Works

Three simple steps to process your GIF

1

Upload GIF

Drag and drop your GIF file or click to browse from your device.

2

Configure

Set quality level, output width, and loop settings for your video.

3

Download

Click convert and download your MP4 video file.

GIF to MP4 file size: measured results

Short answer: a single-pass MP4 was 23% to 99% smaller than the source GIF in our tests. How much you save depends on the content and on two settings, Quality and Loop. We converted three 5-second, 480×270, 15 fps GIFs with the exact settings this tool uses:

Test GIFGIF sizeLow, 1 passMedium, 1 passHigh, 1 passDefault (High, loop 3×)
Screen recording style (text, flat UI colors)1,143 KB51 KB (−95.5%)105 KB (−90.8%)291 KB (−74.5%)876 KB (−23.4%)
Smooth gradients (fractal zoom)4,366 KB45 KB (−99.0%)170 KB (−96.1%)480 KB (−89.0%)1,451 KB (−66.8%)
Pixel art (hard edges, noisy motion)2,897 KB795 KB (−72.6%)1,369 KB (−52.7%)2,226 KB (−23.1%)6,696 KB (+131%)

Swipe the table sideways to see every column.

  • Smooth gradients compress best: GIF needs dithering to fake them, while H.264 stores them efficiently.
  • Pixel art with hard edges compresses least. At High quality the saving dropped to 23%.
  • The default output repeats the animation 3 times, so it is about 3× longer and larger. Turn Loop off when you only need the smallest file.

How we measured: test clips generated with FFmpeg 8.0.1 (testsrc2, mandelbrot and life sources, GIF palette via palettegen/paletteuse), then converted with -c:v libx264 -pix_fmt yuv420p -crf 35|28|20 -preset medium -movflags +faststart, the same arguments the converter runs in your browser. Measured 3 November 2026. Your own GIFs will land at different points in these ranges.

What each setting does

SettingWhat it changesGood for
Quality: LowH.264 CRF 35Chat apps and previews where size matters most
Quality: MediumH.264 CRF 28Most social posts and web embeds
Quality: High (default)H.264 CRF 20Pixel art, small text, detailed UI captures
Output widthScales the video; height follows the aspect ratioHalving the width cuts pixels by about 75%
Loop video (on, 3× by default)Writes the animation into the file 1–10 timesPlayers that do not loop MP4 on their own

Swipe the table sideways to see every column.

Every output is padded to even width and height (H.264 with yuv420p requires it) and written with +faststart, so the video can start playing before it has fully downloaded.

GIF vs MP4: what changes when you convert

GIFMP4 (H.264)
Colors per frameUp to 256 (palette)Full color (H.264, 4:2:0)
CompressionLossless LZW per frameLossy, reuses data between frames
TransparencyYes (1-bit)No: transparent areas become solid
LoopingBuilt into the fileSet by the player (or repeated in the file)
AudioNoPossible, but this tool outputs video only
Where it playsImages: email, docs, Markdown, forumsVideo players, social uploads, HTML5 video

Swipe the table sideways to see every column.

For a longer comparison, read GIF vs MP4: which format to use.

How to turn a GIF into a video for social media

  1. Upload the GIF above. Nothing leaves your device.
  2. Choose Medium quality for most posts, or High for pixel art and small text.
  3. Keep Loop on if the GIF is only a second or two long. If a platform rejects very short clips, a few repeats lengthen the file and help it play smoothly in feeds that do not auto-loop.
  4. Set the width your platform displays (for example 1080 for a full-width phone post), then convert.
  5. Download the MP4 and upload it as a normal video. Add music in the app or in a video editor if you want sound.

When to keep the GIF instead

  • Email: GIFs play in most email clients, while embedded video often does not.
  • READMEs, docs and forums that accept images but not video.
  • Transparent stickers or overlays, since MP4 cannot store transparency.

In those cases, shrink the GIF with the GIF compressor instead. To go the other way, use MP4 to GIF.

GIF to MP4 FAQ

Why convert a GIF to MP4?
MP4 (H.264) stores millions of colors instead of GIF’s 256 and plays in video players, social apps and HTML5 video. It is usually smaller too, but only with Loop off: in our pixel-art test a single pass at Low quality was 72.6% smaller than the GIF.
Will the MP4 loop like the GIF?
An MP4 file does not loop by itself; looping depends on the player. Many social apps auto-loop short videos. The Loop setting repeats the animation 3 times inside the file so it keeps moving in players that do not loop.
Which quality setting should I choose?
High keeps the most detail, Medium is a good balance, and Low gives the smallest file when some quality loss is acceptable.
Can I convert a GIF to a video for Instagram or TikTok?
Yes. Both apps take video uploads rather than GIF files, so convert the GIF to MP4 here and upload the MP4. The output is H.264 with yuv420p color and even pixel dimensions, which standard video uploaders accept. Very short GIFs can be lengthened with the Loop setting.
Why is my MP4 bigger than the GIF?
Usually because of the Loop setting. It is on by default and repeats the animation 3 times inside the file, which roughly triples the size. In our pixel-art test the default output was 131% larger than the GIF, while a single pass at Low quality was 72.6% smaller. Turn Loop off and pick Medium or Low for the smallest file.
Does the MP4 keep the GIF’s transparent background?
No. H.264 MP4 has no alpha channel, so transparent pixels are filled with a solid color. In our test (a GIF with a transparent area, converted with the same H.264 settings this tool uses) the transparent pixels came out near-white, RGB 253, 253, 253. If you need transparency, keep the GIF.
Is my GIF uploaded to a server?
No. The conversion runs in your browser with FFmpeg compiled to WebAssembly. The GIF and the MP4 stay on your device.

Last updated: 3 November 2026.