GIF to MP4

Convert GIF to MP4 video

Click or drop a GIF file hereChoose a GIF file

About GIF to MP4

GIF to MP4 turns an animated GIF into an MP4 video (H.264, yuv420p, fast start) for sites and apps that take video rather than GIF. ffmpeg.wasm runs on this page and reads the delay of each frame, so a pause in the GIF stays a pause and the last frame keeps its full time. Video has no transparency, so transparent areas become white. An odd width or height is scaled to the even size that H.264 needs. The MP4 holds the animation once and has no sound.

How to convert GIF to MP4

  1. 1Choose the GIF to turn into a video; it shows as a preview before conversion.
  2. 2Click "Convert to MP4"; the ffmpeg.wasm engine is loaded before each conversion, faster once your browser has cached it.
  3. 3Play the video under the button to check the timing.
  4. 4Click "Download" to save converted.mp4.

Formats and limits

Input
GIF (image/gif)
Output
MP4 with H.264 video (yuv420p), no audio, saved as converted.mp4
Frame size
Up to 16.8 MP per frame, checked before ffmpeg.wasm loads
Timing
Each frame keeps its delay; delays under 20 ms count as 100 ms, as in browsers
Dimensions
An odd width or height is reduced by one pixel

Where your file is processed

ffmpeg.wasm encodes the MP4 inside this tab, and the GIF never leaves it. The ffmpeg.wasm engine is fetched from unpkg.com for each conversion, unless your browser reuses a cached copy; that request carries nothing about your file. A failed conversion is reported to our error log with the cleaned message, the file extension, a size range, and your browser name, never the file or its name.

Frequently asked questions

Will the MP4 loop like my GIF?

No. The MP4 contains the animation once, because video files have no loop setting. A web page can repeat it with the loop attribute of the video tag, and a video player can be set to repeat it.

Does the MP4 keep transparency?

No. H.264 video has no transparency, so transparent areas come out white, as the GIF looks on a white page. This was checked with a test GIF that has a transparent background.

Is the timing of the GIF kept?

Yes. The frame delays are read from the GIF, the frame rate of the video is set on their common time grid, and the last frame is held for its own delay, so the MP4 lasts as long as one play of the GIF.

Will the size of the picture change?

Yes, by one pixel at most, and only for an odd width or height: H.264 needs even sizes. The picture is scaled to the even size, not cropped.