Convert GIF to MP4 in your browser
Drop one or more animated GIFs above. Each one is converted to an MP4 video right away, with a side-by-side preview of the original GIF and the new video, and the file sizes before and after. Download the MP4, or all of them as a ZIP.
Why MP4 beats GIF
The GIF format dates from 1987. It stores every frame as a 256-colour image compressed with LZW, a method designed for simple graphics, not motion. Video codecs like H.264 only store what changes between frames and use far better compression, so the same animation as MP4 is typically 80–95 % smaller, with full 24-bit colour instead of 256 colours and no dithering noise.
| GIF | MP4 (H.264) | |
|---|---|---|
| Colours | 256 per frame | Millions (24-bit) |
| Typical size | 100 % | 5–20 % |
| Loops by itself | Yes | Only if the player loops |
| Transparency | On/off per pixel | No |
| Accepted by Instagram, TikTok, WhatsApp status | Rarely | Yes |
That's why Twitter/X, Imgur, Giphy and Reddit already convert uploaded GIFs to video behind the scenes.
How it works
- The GIF is decoded frame by frame (with gifuct-js) and each frame is composited exactly as browsers play GIFs: frame position, transparency and disposal methods (keep, clear to background, restore previous) are all handled, so partial-frame and optimised GIFs come out right.
- Each frame is encoded by your browser's built-in video encoder (WebCodecs). H.264 High Profile is used when available, with the bit rate chosen from the frame size, frame rate and the quality setting.
- An MP4 file is written (with mp4-muxer) with the index at the start ("fast start"), so it begins playing before it has fully downloaded.
Each frame keeps its own duration: a GIF that pauses on its last frame for 2 seconds still does in the video.
Settings
- Size: Original, 2× (pixel-sharp enlargement for small GIFs), or a maximum of 1920 or 1280 pixels on the longest side. Video frames must have even dimensions, so an odd-sized GIF gets at most one pixel of background added.
- Quality: Smaller, High (default) or Maximum changes the bit rate. High is visually clean for almost all GIFs.
- Play the animation: repeat the animation 1×, 2×, 3×, 5× or 10× in the video. Useful because videos don't loop on their own everywhere.
- Background for transparency: MP4 has no alpha channel; transparent pixels get this colour.
Where to use the MP4
- Instagram, TikTok, Facebook, WhatsApp status: they accept video, not GIF files. Use 2–3 repeats for a clip of at least a few seconds.
- Websites: replace a heavy GIF with
<video autoplay loop muted playsinline>for much faster pages. Google's PageSpeed specifically recommends this ("Use video formats for animated content"). - Slides and documents: PowerPoint, Keynote and Google Slides play MP4 smoothly.
- Email and chat: smaller files send faster.
If you need the opposite, a still image from a GIF, use GIF to PNG or GIF to JPG.
Private by design
Most online GIF converters upload your file to their server, convert it there and keep it for a while. Here the GIF never leaves your device: it's decoded and encoded by your browser, and the video exists only in your browser's memory until you download it.