Convert a GIF to MP4
Drop an animated GIF and get an MP4 that looks the same, weighs a fraction as much, and plays in every video player and social app. Converted locally in your browser with ffmpeg; nothing is uploaded.
Runs in your browser with ffmpeg. The file is never uploaded.
About the gif to mp4
GIF is the worst way to ship moving pictures and the most convenient, which is why the web is full of them. A 10-second GIF at 480px is routinely 8-15MB; the same clip as H.264 MP4 is under 1MB with smoother colour, because video codecs compress across frames while GIF stores every one. That is also why Twitter, Reddit and Imgur silently convert your GIF uploads to MP4. This converter does the same conversion on your machine. It decodes every frame of the GIF, encodes them with H.264 at the GIF's own frame rate, pads the dimensions to even numbers (a codec requirement that trips up naive converters and produces a green line or an error), sets the pixel format that Safari, iOS and Windows Media Player all accept, and moves the index to the start of the file so it begins playing before it has fully loaded. GIFs have no audio, so the output has no audio track either, which keeps it small and avoids the 'silent video with an empty audio stream' quirk. You can repeat the loop a few times so a 2-second GIF becomes an 8-second clip, useful for platforms that do not loop MP4s automatically.
How it works
Drop your video
MP4, MOV, WebM or MKV, up to 500MB. It is processed in your browser with ffmpeg, nothing is uploaded anywhere.
Pick the settings
Times, quality, size or speed depending on the tool. A progress bar shows how far along the export is.
Download
The result saves to your device. Free, no watermark, no signup.
Tips for best results
Things that meaningfully improve the output.
Repeat the loop for social
Instagram and LinkedIn play an MP4 once. If your GIF is a 2-second loop, use the repeat option to make it 4 or 8 seconds so viewers actually see the motion.
Expect a big size drop
A 12MB GIF typically converts to 500KB-1.5MB. If you were about to compress a GIF, converting it to MP4 is the better move nine times out of ten.
Transparency becomes black
MP4 has no alpha channel. If the GIF has a transparent background, it is filled with black. Convert on a solid background if that matters.
Need it as a GIF again later?
Keep the original. GIF to MP4 to GIF loses colour twice. The video-to-GIF tool on this site handles the other direction.
Need more than gif to mp4?
renza turns photos into video with Kling, Veo and Seedance, and upscales footage to 4K. Free credits at signup, no credit card.
Create free account →Frequently asked questions
Will the MP4 loop like the GIF?
Browsers and most players do not loop MP4 by default. Use the repeat option to bake in 2, 4 or 8 loops, or set the loop attribute where you embed it.
Does the quality get worse?
Usually it gets better: H.264 has millions of colours where GIF has 256 per frame. At the default quality the encode is visually lossless for GIF sources.
Is the GIF uploaded?
No. The conversion runs in your browser with ffmpeg compiled to WebAssembly. The file never leaves your device.
Why do some converters give an error about odd dimensions?
H.264 needs even width and height. This tool pads by one pixel where needed so any GIF converts.
Can I convert a GIF from a URL?
Save it first, then drop the file. Fetching from a URL would mean a server in the middle, and this tool has none.