Convert GIF to MP4 or WebM video
This GIF to MP4 converter turns an animated GIF into a real video file — MP4 with H.264, or WebM with VP9 — right in your browser. Videos are typically a fraction of the size of the GIF, they play smoothly with hardware decoding, and they are what most social networks, chat apps and slide tools actually want when you upload an animation.
Unlike screen-recording a GIF or running it through a generic converter, this tool reads the GIF’s own frame delays and writes each frame for exactly that long, so the motion keeps its rhythm. You can repeat the animation several times, enlarge it with smooth or pixel-sharp scaling, choose a background colour for transparent areas — or keep the transparency in a WebM. Nothing is uploaded: decoding and encoding happen on your device.
How to use the GIF to Video Converter
- Drop a GIF onto the box above or click to choose one. The table shows its size, frame count, loop length, delays and whether it has transparency.
- Pick MP4 (H.264) for the widest support or WebM (VP9) for the web and transparency.
- Set Play the animation to repeat it, a Size (2× and 3× suit tiny GIFs), and Frame timing — exact, or a constant 24–60 fps for editors and strict platforms.
- Choose the Background colour for transparent pixels, or tick Keep transparency (WebM). Tick Keep pixels sharp for pixel art.
- Press Convert to MP4 (or WebM), compare the GIF and the video side by side, then press Download.
GIF to Video Converter features
Exact frame timing
Every frame lasts as long as its GIF delay, to the centisecond, so variable-speed animations stay faithful. A constant-frame-rate mode repeats frames on a 24, 25, 30 or 60 fps grid instead.
Loops and resizing
Repeat the animation up to 20 times and enlarge it 2× or 3× or to 480, 720 or 1080 pixels wide, with optional nearest-neighbour scaling that keeps pixel art crisp.
Transparency handled
MP4 has no alpha channel, so transparent pixels are filled with the colour you choose. WebM VP9 can keep the transparency for websites.
Even dimensions
H.264 and VP9 need even widths and heights; odd sizes are rounded to the nearest even pixel instead of failing.
Two decoders
The browser’s ImageDecoder decodes the GIF where available, with a built-in LZW decoder as a fallback; both handle interlacing, local palettes and every disposal method.
Why a video beats a GIF
GIF is a 1987 image format: each frame is a separate picture of at most 256 colours, compressed with LZW, with no way to reuse what stayed the same between frames. H.264 and VP9 predict each frame from the previous ones and code only the changes, so the same animation usually becomes several times smaller as MP4 — often five to ten times for photographic content — and looks better, because a video is not limited to 256 colours.
That is why platforms quietly convert uploaded GIFs into videos. Converting yourself gives you control over size, background, loop count and quality, and the MP4 works anywhere a video does: Instagram and TikTok posts, WhatsApp, PowerPoint and Keynote, video editors and HTML5 <video> tags.
Settings for common destinations
| Destination | Format | Suggested settings |
|---|---|---|
| Instagram or TikTok post | MP4 | Repeat a short GIF to at least 3 s; 720 or 1080 px wide; constant 30 fps |
| WhatsApp, Telegram, Slack | MP4 | Original size or 2×, exact timing |
| Website background or banner | WebM (with an MP4 fallback) | Keep transparency for cut-out animations |
| Video editor timeline | MP4 | Constant 25 or 30 fps to match the project |
| Pixel-art sprite | MP4 or WebM | 3× size with Keep pixels sharp |
Things worth knowing
- Videos do not loop on their own the way GIFs do. Web pages loop them with the
loopattribute; for players that do not, use Play the animation to repeat it inside the file. - WebM transparency plays in Chrome, Edge and Firefox. Safari does not show WebM alpha, so provide an MP4 for Safari visitors.
- Browsers display GIF delays of 0 or 0.01 s as 0.1 s; this tool follows that convention so the video matches what you see.
- Going the other way? Make a GIF from a clip with MP4 to GIF, or shrink an existing animation with the GIF compressor.
- Video files are written by Mediabunny (MPL-2.0) using your browser’s WebCodecs encoder; nothing is sent to a server.
GIF to Video Converter FAQ
How do I convert a GIF to MP4?
Drop the GIF into this GIF to MP4 converter, keep the MP4 (H.264) format, adjust loops or size if you like and press Convert to MP4. The video appears next to the GIF for comparison; press Download MP4 to save it.
Will the MP4 be smaller than the GIF?
Almost always. Video codecs store only what changes between frames, so most GIFs shrink several times over. Very small, flat-colour GIFs may come out similar in size; choose the Medium or Small file quality to reduce them further.
Can I keep the transparent background?
MP4 cannot store transparency, so transparent pixels get the background colour you pick. Choose WebM (VP9) and tick Keep transparency to keep the see-through areas; it plays transparent in Chrome, Edge and Firefox.
Why does my video have a slightly different size from the GIF?
H.264 and VP9 need an even width and height. A 33×21 GIF becomes a 34×22 video — a one-pixel stretch you will not notice.
How do I make the video loop on Instagram or WhatsApp?
These apps loop short videos automatically, but some need a minimum length. Use Play the animation to repeat a short GIF several times so the clip is long enough.
Is my GIF uploaded?
No. The GIF is decoded and the video encoded inside your browser tab with WebCodecs. Only the Mediabunny library is loaded from a CDN.