GIF to MP4 Converter

Convert animated GIFs into much smaller MP4 videos.

Convert an animated GIF into an MP4 video. Video compression is far more efficient than GIF's, so the MP4 is usually much smaller and isn't limited to 256 colours, and many social and messaging apps handle video better than GIFs. The converter uses your browser's built-in H.264 encoder, the video format every phone, computer and social network plays. Each frame keeps its own timing, transparent areas are filled with a colour you choose, and a short GIF can be repeated so the video runs for longer. Animated WebP files work too. Everything runs in your browser, so your files are never uploaded, and there's no sign-up or watermark.

Animated WebP works too. Converted in your browser; nothing is uploaded.

Common use cases

  • Post a GIF to Instagram, TikTok or another app that wants video
  • Shrink a heavy GIF on a website by using a muted, looping video instead
  • Send an animation in a chat app that compresses GIFs badly
  • Add a GIF to a video editor or slide deck

How to use

  1. Choose a GIF or animated WebP.
  2. Choose how many times to play it in the video, and a background colour for transparent areas.
  3. Press Convert to MP4.
  4. Watch the preview and download the MP4.

FAQ

Why is MP4 smaller than GIF?

GIF compresses each frame on its own with a palette of at most 256 colours. H.264 video predicts each frame from the ones before it and stores mainly the differences, so the same animation usually takes much less space as MP4.

Which browsers can do this?

It needs the WebCodecs video encoder, which recent versions of Chrome, Edge, Safari and Firefox have. If your browser doesn't, the tool says so.

Will the video loop?

MP4 files don't loop by themselves, but most apps and players loop short videos automatically. To make the video longer, play the GIF 2, 3, 5 or 10 times.

What happens to transparency?

MP4 video has no transparency, so transparent areas are filled with the background colour you pick.

Why is the video a slightly different size?

H.264 needs an even width and height, so odd sizes are rounded to the nearest even number of pixels. GIFs larger than 3,840 pixels are scaled down to fit.