Convert GIF to MP4

A GIF stores every frame in full. A video only stores what changed. That is why the same clip as MP4 is usually a fraction of the size — with better colour.

Nothing is uploaded No watermark No signup

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

  1. Drop the GIF on the box above.
  2. 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.
  3. Set the quality. 6 Mbps is visually transparent for most GIF-derived content. Go to 2 Mbps only if the destination caps upload size.
  4. 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.
  5. 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:

GIFMP4 (H.264)
Colours256 per frame24-bit, millions
Between framesFull frame re-storedOnly the changed blocks, plus motion vectors
CompressionLZW (lossless, weak)DCT + prediction (lossy, strong)
Audiononeoptional
Typical size, 480 px / 3 s2–4 MB150–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?

FormatSize vs GIFTransparencyUse it for
GIF1×1-bitEmail, READMEs, chat, anywhere video is blocked
MP4 (H.264)0.1–0.2×noSocial posts, product pages, anything with audio later
WebM (VP9)0.08–0.15×yes (alpha)Websites where you control the player
Animated WebP0.1–0.3×8-bitWebsites 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.

Questions people actually ask

Why does the conversion take the same time as the GIF's length?

Because it records in real time. The canvas is captured by MediaRecorder as the frames play, so a 6-second GIF takes about 6 seconds. Avoiding that would mean shipping a full software video encoder (ffmpeg.wasm is roughly 30 MB) into the page, which seemed like a bad trade for a tool that already works without it.

Will the MP4 loop?

It is written with a loop flag and most players honour it — browsers, QuickTime, VLC. Some contexts (Instagram feed, certain iOS webviews) ignore the flag and play it once. If looping is essential and the destination is a web page you control, use a <video autoplay muted loop playsinline> element rather than relying on file metadata.

Why is my output WebM when I asked for MP4?

Your browser cannot record MP4. Firefox in particular records WebM. The tool falls back rather than producing a broken file. Use Chrome, Edge, or Safari if you specifically need MP4.

Does it keep transparency?

No — video formats cannot. Transparent areas are filled with the background colour you choose. If you need transparency and a small file, animated WebP with alpha is the format to look for, not MP4.

The output looks slightly softer than the GIF. Why?

Three things: the H.264 encoder is lossy, the canvas is resampled if you changed the width, and a GIF's dither pattern is high-frequency noise that video compression deliberately smooths away. Raising the quality to 12 Mbps reduces it; the rest is inherent to going from a dithered palette image to a video codec.

Can I convert MP4 back to GIF?

Yes — that is the video to GIF tool. Just expect the file to grow by roughly 5–10×.