Convert GIF to MP4

Turn an animated GIF into an MP4 video.

Drop your GIF hereor click to choose — up to 50 MB free

This tool turns an animated GIF into an MP4 video encoded with H.264. GIF stores every frame as a picture limited to 256 colours with weak compression, while video stores mostly the changes between frames, so the MP4 is normally much smaller than the GIF it came from. Use it when a GIF is too heavy to send or when a site accepts video but not GIF.

How to use it

  1. Drop your GIF on the page, or click to choose it.
  2. Click Convert to MP4.
  3. Download the MP4 and play it to check the motion and timing.

What changes when a GIF becomes an MP4

The animation and its frame timing carry over. Several properties of GIF do not exist in this kind of MP4, and they are lost in the conversion.

  • Looping: a GIF repeats by itself. An MP4 plays once unless the player or the web page is set to loop it.
  • Transparency: the video has no transparent pixels, so see-through areas are filled with a solid background.
  • Size: H.264 needs even dimensions, so a GIF with an odd width or height is adjusted by one pixel.
  • Sound: a GIF has none, so the MP4 has no audio track.

Quality of the result

The video is encoded at a constant quality setting (CRF 23) in the 4:2:0 colour format that phones, browsers and televisions play. On photographic GIFs this looks the same as the source. On GIFs with flat colour, thin lines or small text, such as screen recordings, edges can look slightly softer, because video compression blends fine colour detail.

The conversion cannot bring back colours the GIF never had. Banding and dither patterns in the GIF are part of its frames and appear in the video too.

Files it takes

Only GIF files are accepted; an animated WebP or a video is turned away. There are no settings. To go the other way, use Video to GIF, and to make the MP4 smaller still, use Compress video.

Questions

Why is the MP4 so much smaller than the GIF?

Because video compression records what changes from one frame to the next, while GIF stores each frame as a nearly complete image. How much smaller depends on the animation: steady footage shrinks the most.

Will the MP4 loop like the GIF did?

Not by itself. Looping is a property of the player for video. Most social platforms loop short clips automatically; on a web page the video tag needs its loop attribute.

Does the converted video keep a transparent background?

No. The MP4 has no transparency, so transparent areas become a solid colour.

Can I convert a GIF that does not move?

Yes, but a single-frame GIF becomes a video of one frame. For a still picture, GIF to PNG or GIF to JPG is the better route.

Is the result the same size in pixels?

Yes, apart from an odd width or height being changed by one pixel. Nothing is enlarged or reduced.