No upload, 100% local, no account

GIF to video (MP4)

Convert an animated GIF into a small, shareable MP4. Everything runs in your browser.

How GIF to video (MP4) works

Convert an animated GIF into a compact MP4 video with ffmpeg WebAssembly, entirely inside your browser. The GIF frames are re-encoded to H.264 with the yuv420p pixel format, which is the widest-compatible choice for browsers and social platforms. The resulting MP4 is typically five to twenty times smaller than the source GIF while looking noticeably sharper, because H.264 is not limited to 256 colours and compresses temporal redundancy between frames far more efficiently than GIF's LZW algorithm.

Most GIFs convert in a few seconds because their frame count is low. The resulting MP4 plays natively in every modern browser and can be embedded in web pages without plugins. Looping behaviour in the MP4 depends on the player rather than being encoded in the file, unlike GIF which carries its own loop instruction.

How to use GIF to video (MP4), step by step

  1. Drop or select the animated GIF file.
  2. The tool automatically detects frame count and dimensions.
  3. Click Convert to MP4 to start the H.264 re-encode on your device.
  4. Wait for ffmpeg to finish.
  5. Download the MP4 and use it wherever the GIF was too large.

Common use cases

  • Replacing a large GIF on a web page with an MP4 to reduce page load time and improve Core Web Vitals scores.
  • Converting a GIF received from a client into an MP4 to import it into a video editor that does not accept GIFs.
  • Shrinking a sticker-pack GIF set before uploading them to a platform with a per-file size cap.
  • Turning a GIF animation prototype into an MP4 for a pitch deck where file size matters.

Frequently asked questions

How much smaller will the MP4 be compared with the GIF?

GIF uses LZW lossless compression but carries a full colour-indexed frame for every single frame. H.264 stores only the differences between frames (inter-frame prediction) and uses a perceptual lossy compressor, so the savings are dramatic. A typical animated GIF of a few megabytes becomes an MP4 of a few hundred kilobytes. The exact ratio depends on how much motion is in each frame.

Is the GIF file sent to a server for conversion?

No. ffmpeg.wasm re-encodes the GIF frames to H.264 inside your browser tab. The GIF is read into local memory, processed there, and the MP4 is downloaded to your device. Nothing leaves your machine during the conversion.

Will the MP4 loop automatically like the GIF?

The loop property is not stored in the MP4 file itself the way it is in a GIF's NETSCAPE extension. Whether the video loops depends on the player: most browsers loop short videos in HTML with the loop attribute set, and social platforms loop automatically. Standalone video players may play once and stop. If you need controlled looping on a web page, add the loop attribute to the video element.

Does the conversion affect the frame rate or duration?

The frame rate in the output MP4 matches the frame timing in the GIF, which ffmpeg reads from the GIF's frame delay headers. If different frames in the GIF have different delay values (variable frame rate), ffmpeg normalises these to a constant frame rate. The total duration is preserved.

Can I convert a very large GIF, like a 50 MB file?

Yes, as long as your browser has enough RAM to hold the GIF and the decoded frames in memory simultaneously. Large GIFs with many frames can require significant memory. If the tab crashes, try splitting the GIF into shorter segments with an external tool first.

Why is the output yuv420p instead of preserving the original colours exactly?

yuv420p is the only H.264 colour space that all decoders and browsers support universally. H.264 with a full RGB or yuv444p colour space works in some players but fails in others. The conversion from GIF's 256-colour palette to yuv420p produces a result that looks sharper than the GIF to the human eye because H.264 stores true-colour data, not a limited palette.

Can I convert a GIF to MP4 on my phone?

Yes. Most GIFs are small enough that the re-encode is quick and light on memory even on a phone browser. A very large, many-megabyte GIF with lots of frames is the one case where a computer copes more comfortably than a phone.