go-supertools
Media Tools

GIF to MP4 Converter

Turn an animated GIF into an MP4 video that is much smaller and plays everywhere.

Runs in your browser Your input never leaves your device.

Drop a GIF here, or .

Your file is processed in your browser and never uploaded. The first run downloads the ffmpeg engine (about 25 MB) from a public CDN.

Report a problem with this tool

About this tool

A GIF stores every frame as a separate picture with 256 colours, so a few seconds of animation can be many megabytes. An MP4 video of the same animation is usually 5 to 20 times smaller and plays more smoothly. Choose your GIF and the tool makes an H.264 video in the yuv420p format that every phone, browser and social network accepts, with the width and height rounded down to even numbers (H.264 needs them) and the fast-start setting so that it begins to play before it has fully loaded. The animation keeps its speed and its number of frames; GIFs have no sound, so the video has none. Videos do not loop by themselves in every player: on web pages, add the loop and muted attributes to the video tag to get the behaviour of a GIF. We checked the ffmpeg commands this tool builds by running them with a real ffmpeg on test clips and measuring the results (sizes with ffprobe, picture content with ImageMagick, sound with a spectrum and loudness meter), and the page itself in a browser with the real ffmpeg.wasm engine. The first use downloads the ffmpeg engine (about 25 MB), which then stays in your browser cache. It needs a current desktop Chrome, Edge or Firefox; large videos use a lot of memory, and very long clips can fail on small devices. Your file is processed in your browser with ffmpeg and never uploaded.

How to use it

  1. Choose a GIF.
  2. Press Process.
  3. Preview the video.
  4. Download the MP4.

Common problems

The video does not loop
MP4 files carry no loop setting. Use the loop attribute on a web page's video tag, or the loop option of your player.
The colours look different
GIFs use 256 colours and videos 16 million; slight differences are normal. The picture usually looks smoother.
The size is one pixel smaller
H.264 needs even sizes, so an odd width or height is reduced by one pixel.