Convert GIF to MP4 online
Convert a GIF file to MP4 directly in your browser — the file is never uploaded to a server.
or click to select it
Convert an animated GIF to an MP4 video directly in your browser. The result is usually dramatically smaller than the original GIF for the same visual content, because H.264 compresses video far more efficiently than GIF's color-palette approach.
Decodes each frame of the GIF and re-encodes them as H.264 video inside an MP4 container, keeping the same animation. GIF was designed in the 1980s for simple, low-color graphics, not video, so its palette-based compression is very inefficient on clips with motion or gradients — exactly where H.264 excels.
Use cases
- Share a GIF-like clip on a platform that limits or discourages large GIF uploads.
- Save storage space or bandwidth when hosting on a website an animation that's currently a GIF.
- Prepare an animation for embedding into a video or presentation that only accepts standard video formats.
How it works
- 1
Upload your animated GIF
Drop the file in or select it from your device.
- 2
Click Convert
ffmpeg.wasm decodes each GIF frame and re-encodes it as H.264 video in your browser.
- 3
Download the MP4
Once it's done, download the resulting video.
Technical details
Runs ffmpeg.wasm inside a Web Worker in your browser. GIF compresses each frame almost independently with a limited color palette; H.264 additionally exploits the similarity between consecutive frames (temporal compression), which typically results in a file several times smaller for the same visual content.
Frequently asked questions
Why is the MP4 so much smaller than the original GIF?
GIF compresses each frame almost independently with a limited color palette; H.264 also exploits the similarity between consecutive frames, which shrinks the size far more for animations with continuous motion.
Does the conversion lose visual quality?
There's some lossy compression inherent to H.264, but with the settings used it's usually imperceptible — in fact, since it isn't limited to GIF's 256-color palette, the MP4 can end up showing more color nuance.