GIF to MP4: turn an animated GIF into a small MP4 video

Turn an animated GIF into an MP4 video that is often 80 to 95% smaller and plays smoothly everywhere. Keeps each frame's timing. Nothing is uploaded.

Keep it one tap away for everyday use.

Bookmark GIF to MP4?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

Or install fibub as an app: every tool you open then works offline.

  1. Open GIF
  2. Choose
  3. Make MP4
  4. Download
Nothing is uploadedWorks offline once open
Or drop it here, up to 200 MB. It stays on this device.

Your browser reads the GIF and encodes the video on this device. Nothing is uploaded.

What it does

GIF is an old picture format: every frame is stored separately with only 256 colours, so animations get large fast. An MP4 video of the same animation is usually 80 to 95% smaller and looks better. Many sites (and most messaging apps) turn GIFs into videos behind the scenes for this reason. This tool does it in your browser, so the GIF is not uploaded.

It reads every frame with its own timing, the way browsers play GIFs, and fills see-through parts with white or black, since ordinary videos cannot be see-through. To go the other way, use video to GIF; to make the video smaller still, use the video compressor or the video converter for other formats.

How to use it

  1. Press Open a GIF (or drop one on the box).
  2. Choose how many times to Play it, the colour for see-through parts and the Largest side.
  3. Press Make the video, check it in the page, then Download.

What each setting does

  • Play it: GIFs usually loop for ever; videos play once unless the player loops them. Choose 2 to 10 times for a longer video, for example to post on a site that does not loop.
  • See-through parts become: white or black.
  • Largest side: keeps the size, or makes the video smaller. Video encoders need even sizes, so a 99-pixel side becomes 100.

Frames that a GIF says last 0 or 10 ms are played for 100 ms, as browsers do.

Worked example

A 96 × 64 test GIF with 15 frames at 10 frames per second is 1.5 s long. As MP4 it is a 96 × 64 video of 1.5 s; played 3 times it is 4.5 s. The checks for this page convert exactly this GIF and check the size and length of the video.

FAQs

Why is my MP4 bigger than the GIF? That can happen with tiny GIFs of a few frames. For anything longer than a second, the video is almost always much smaller.

Will it play on my phone? Yes. MP4 with H.264 plays on every phone, computer and social site.

Is my GIF uploaded? No. Everything happens on this device.

Where the numbers come from

  • GIF89a file format (CompuServe, 1990) with LZW compression. The GIF reader is fibub's own working, checked pixel for pixel against ffmpeg in tests/audio.mjs.
  • Reading, writing and converting video with Mediabunny (MPL-2.0, credited in NOTICE), using the browser's own WebCodecs encoder and decoder (W3C). Nothing is uploaded.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-16.

Change log for GIF to MP4

  1. Move the 8 audio and video tools to free order numbers 2401-2408 so parallel builders don't clash Details on GitHub
  2. Give the 8 new audio and video tools free order numbers after merging main Details on GitHub
  3. Add 8 audio and video tools: audio speed, pitch shifter, video joiner, GIF to MP4, video speed, video converter, add audio, crop video (#T971-#T978) Details on GitHub

Every change to fibub

Related tools