Drop a GIF above and get back an MP4 or WebM. Same frames, same timing, far fewer bytes — usually 5 to 10 times smaller — plus full 24-bit colour instead of GIF's 256-colour palette.
The conversion happens in your browser using MediaRecorder and a canvas. Nothing is uploaded. There is no ffmpeg download, no 30 MB WASM blob, and no server round-trip.
How to convert a GIF to MP4
- Drop the GIF on the box above.
- Pick a format. Leave it on Auto and the tool uses whatever your browser records natively — MP4 in Chrome, Edge, and Safari; WebM in Firefox.
- Set the quality. 6 Mbps is visually transparent for most GIF-derived content. Go to 2 Mbps only if the destination caps upload size.
- Choose a background. GIF transparency becomes flat colour in video. White is right for most web use; black if it will be embedded on a dark page.
- Convert. The tool plays through the frames at their original delays and records the canvas. A 5-second GIF takes about 5 seconds.
Why the video is so much smaller
This is not a trick, it is the difference between two eras of image compression:
| GIF | MP4 (H.264) | |
|---|---|---|
| Colours | 256 per frame | 24-bit, millions |
| Between frames | Full frame re-stored | Only the changed blocks, plus motion vectors |
| Compression | LZW (lossless, weak) | DCT + prediction (lossy, strong) |
| Audio | none | optional |
| Typical size, 480 px / 3 s | 2–4 MB | 150–400 KB |
A 20-frame GIF of someone blinking stores 20 complete images. The MP4 stores one image plus nineteen tiny "this 16×16 block changed slightly" instructions. That is the entire size difference, and it is why every major platform — X, Reddit, WhatsApp, Facebook, Discord previews — silently re-encodes your GIF into video on upload.
What you lose
- Transparency. Video has none. It is replaced by the flat background colour you choose.
- Automatic looping. MP4 can carry a loop flag but players are inconsistent. Most players honour it; some iOS contexts do not.
- Universal inline support. A GIF shows inline in every email client and chat app. An MP4 needs a video element, a player, and often a poster frame. Where GIF is mandatory, keep the GIF.
Real-time, by design. Recording through MediaRecorder is the only way to do this without shipping a full video encoder to the browser. The trade-off is that a long GIF takes a while. Keep the tab in the foreground — background tabs get their timers throttled, which can throw the frame timing off.
GIF, MP4, WebM, or animated WebP?
| Format | Size vs GIF | Transparency | Use it for |
|---|---|---|---|
| GIF | 1× | 1-bit | Email, READMEs, chat, anywhere video is blocked |
| MP4 (H.264) | 0.1–0.2× | no | Social posts, product pages, anything with audio later |
| WebM (VP9) | 0.08–0.15× | yes (alpha) | Websites where you control the player |
| Animated WebP | 0.1–0.3× | 8-bit | Websites needing transparency, Chrome/Safari/Edge |
For a public website, animated WebP or a muted looping MP4 is almost always the right answer: both are smaller than GIF and both look better. GIF survives because of inertia and because email clients, READMEs, and forums still treat it as the one animated format that just works.