GIF to MP4 / WebM
Turn a heavy animated GIF into a small MP4 or WebM — converted in your browser, nothing is uploaded.
GIF to MP4 / WebM
Animated GIFs are huge. Convert one to an MP4 (H.264) or WebM (VP9) video and it typically shrinks by 5-10x while looking the same. Everything runs in your browser with ffmpeg; the GIF is never uploaded.
How it works
- Pick a format: mp4 (most compatible, default) or webm (often even smaller).
- Every frame of the GIF is re-encoded to video; the animation is preserved.
- Frames are scaled to even dimensions (H.264 / yuv420p require it) using a high-quality Lanczos filter.
Notes
- MP4/WebM don't store "loop forever" the way a GIF does — set your player or the
HTML
<video loop>attribute to loop it. - Re-encoding runs locally, so a long GIF takes a little time.
FAQ
Is my GIF uploaded?
No — ffmpeg runs in your browser tab; the file never leaves your device.
Which format is smaller?
WebM (VP9) is usually smaller; MP4 (H.264) plays everywhere. Try both.
Is there a file-size limit?
Yes — the input GIF and the output video are each capped at 25 MB. Since conversion typically shrinks a GIF 5-10x, the input cap is the one you're more likely to hit.
Why is my video one pixel smaller than the GIF?
H.264 and the yuv420p pixel format require even width and height, so a GIF with an odd dimension (say 481×270) is scaled down by one pixel to the nearest even size using a Lanczos filter. Even-sized GIFs come through at their original dimensions.
Why doesn't the converted video loop like the GIF did?
MP4/WebM streams don't carry a "loop forever" flag — looping is a player setting. Add the loop attribute to your HTML <video> tag (or enable repeat in your player) and it will cycle just like the GIF.
Developer & Automation Access
Run it from the terminal
Same engine as this page, headless — via the gizza CLI:
gizza tool gif-to-mp4 'url=https://example.com/input' 'format=mp4'New to the CLI? Get gizza →
Open it by URL
Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:
https://gizza.ai/tools/gif-to-mp4/?format=mp4&url=https://example.com/inputMachine-readable descriptor: tool.json — title + parameters JSON Schema for agents.
