How to convert GIF to MP4
- 1
Drop your GIF file into the converter above, or click to browse. Nothing is uploaded — the file stays on your device.
- 2
Adjust the settings (quality, resolution, and trim). Tip: The default quality of 80 (CRF 21) suits most GIFs. The GIF's own frame rate is kept, so if you need a smaller MP4, lower Resolution or trim the clip rather than cutting quality heavily.
- 3
Click “Convert to MP4”. The conversion runs locally in your browser — larger files take longer, and a progress bar keeps you posted.
- 4
Preview the result and hit Download to save your MP4 file.
Settings at a glance
| Setting | Options | Default | What it does |
|---|---|---|---|
| Quality | 10–100 (steps of 5) | 80 | Sets the H.264 CRF: 100 = CRF 18, 80 = CRF 21, 10 = CRF 31. Higher means more detail and a larger file. |
| Resolution | Original, 1080p, 720p, 480p | Original | Caps the output height and keeps the aspect ratio; never upscales. With Original, odd dimensions are rounded down to even numbers, which H.264 requires. |
| Trim | Start and end time (seconds or m:ss) | Whole GIF | Converts only the part you choose. |
| Audio | None | No audio track | GIFs contain no audio, so the MP4 is silent. |
| Frame rate | Fixed | Same as source | The GIF's frame rate is kept. |
Why convert GIF to MP4?
GIF stores each frame as a palette image with only simple lossless compression, while H.264 stores mostly the differences between frames. For most animated GIFs that makes the MP4 smaller, which is why many platforms convert uploaded GIFs to video behind the scenes. How much smaller depends on the clip, so compare the sizes the tool shows after converting.
On a website, an MP4 in a muted, looping, autoplaying <video> tag behaves like a GIF while usually loading faster. The MP4 will not have an audio track, since GIFs carry none, and it will not loop on its own outside a player that loops.
GIF vs MP4 at a glance
| GIF | MP4 | |
|---|---|---|
| Type | Animated image | Video container (H.264 + AAC) |
| Compression | Max 256 colors per palette (lossy for video), then lossless LZW | Lossy, very efficient |
| Transparency | Yes (1-bit) | — |
| Audio | No | Yes (AAC) |
| Compatibility | Universal — autoplays in chats, docs, emails | Universal — every device, browser, and editor |
| Best for | Short loops, reactions, tutorials, README demos | Sharing, social media, editing, playback anywhere |
About the formats
GIF Graphics Interchange Format
GIF is the internet's animation workhorse: it autoplays silently everywhere — chat apps, docs, README files, emails — with no video player needed. The trade-offs are a 256-color palette, no audio, and file sizes that grow quickly with resolution and frame rate.
MP4 MPEG-4 Part 14
MP4 is the most widely supported video format in the world. Built on the H.264 codec with AAC audio, it plays on every phone, browser, TV, and editing app, and offers an excellent balance of quality and file size. When in doubt, MP4 is the safe choice for sharing video.
Frequently asked questions
Will the MP4 loop like the GIF did?
The looping lives in the player rather than the file. On a website, add the loop, muted and autoplay attributes to your <video> tag and it behaves like a GIF; many chat apps and players also loop short videos automatically. The converter does not mark the MP4 as looping.
How much smaller will the MP4 be?
It depends on the GIF, so there is no fixed figure. GIF stores every frame as a palette image with simple lossless compression, while H.264 stores mostly the differences between frames, so most animated GIFs shrink, and the longer, larger and more photographic the GIF, the bigger the saving tends to be. The ANFX tool shows the output size next to the original after converting, so you can check.
Does the MP4 keep the GIF's colors and quality?
Visually it comes out close at the default quality, but not identical: the ANFX converter encodes the GIF's frames as H.264 at CRF 21 (quality 80) in the yuv420p color format. Converting cannot restore colors the GIF already lost when it was reduced to 256 colors, and at quality 100 (CRF 18) the encoding adds the least extra loss.
Is this GIF to MP4 converter really free?
Yes. The ANFX GIF to MP4 converter is free to use with no sign-up, no watermark added to the output, and no cap on how many files you convert. It is paid for by the ads on the page, not by you.
Are my files uploaded to a server?
No. The ANFX GIF to MP4 converter runs FFmpeg compiled to WebAssembly inside your browser tab, so your GIF file is read and converted on your own device and is never sent to ANFX or anyone else. The only thing downloaded is the conversion engine itself, which makes the tool suitable for private or confidential files.
Is there a file size limit?
The tool sets no file-size or length limit of its own. The whole GIF file is loaded into your browser tab's memory and converted there, so the practical ceiling is your device's available memory: large files take longer, and very large ones can fail on phones or low-memory computers. Trimming does not reduce the memory needed to load the file, but it does shorten the conversion and shrink the output.
Why does the first conversion take a moment to start?
On the first conversion your browser downloads the conversion engine (FFmpeg compiled to WebAssembly, about 31 MB) from a public CDN. The browser caches it, so later conversions start much faster. The engine runs on a single CPU thread, so conversion speed depends on your device and on the length and resolution of the file.
Related converters
See all converters on the free online tools page.
GIF and MP4 explained
Not sure which format you actually want? These guides cover the trade-offs.
- GIF vs MP4: Which Is Better for Short Animations?The same 5-second clip can be an 8 MB GIF or a 400 KB MP4. Why GIF is so inefficient, where it still beats video anyway, and how to pick per platform.
- How to Reduce Video File Size Without Killing QualityResolution, codec, quality setting, trimming — four levers control video file size, and they're not equally effective. Which to pull first, with real numbers.
Making videos? Grab free assets too
ANFX offers a library of free 4K motion graphics, overlays, and stock video — no attribution required.
Browse free stock video