GIF to Video Converter
Convert any animated GIF into a much smaller mp4 or webm: entirely in your browser via ffmpeg.wasm. mp4 + auto-play loop is typically 10-20x smaller than the original GIF.
Interactive tool
ffmpeg.wasm engine loads on first run (~32 MB)
The engine is cached for the rest of your session. Every transcode runs entirely in your browser: files never leave your device.
Threading: detecting…
Drop a GIF to convert
Animated GIF in, smaller mp4 or webm out.
What is the GIF to Video Converter?
A free, in-browser tool that turns an animated GIF into a much smaller mp4 (H.264) or webm (VP9). Same loop, same length, dramatically lower bandwidth, perfect for landing pages, docs, and embeds. No upload, no signup.
How to Use the Converter
- 1Drop a .gif file (animated)
- 2Pick mp4 or webm
- 3Pick a loop strategy: once, finite, or infinite
- 4Click Convert
- 5Preview the silent video and download
Key features
mp4 + webm output
H.264 + AAC for universal compatibility, or VP9 for the smallest webm
Loop strategies
Once, N times, or infinite: controlled via -stream_loop
Even-pixel scale guard
Adds scale=trunc(iw/2)*2:trunc(ih/2)*2 so libx264 + yuv420p never errors out
Faststart for mp4
Adds -movflags +faststart so the file plays from the first byte over HTTP
Multi-threaded ffmpeg.wasm
Uses SharedArrayBuffer when available for faster transcoding
100% private
No upload, no logs, no signup: the GIF stays in your browser
Why Convert GIFs to Video?
GIFs use a 256-colour palette and have no inter-frame compression, which makes them 10-20x larger than the same content as an H.264 mp4 or VP9 webm. Replacing GIFs with auto-playing muted video is one of the single biggest wins for web page weight: every major site (Twitter, Reddit, Imgur) does it.
Common use cases
- Shrink a reaction GIF before posting where uploads count against quota
- Replace a 5 MB landing-page GIF with a 300 KB mp4 + auto-play loop
- Convert a documentation GIF into a chat-platform-friendly mp4
- Make a tweet-friendly looping clip from any animated GIF
- Compress an old GIF screen capture for an issue tracker
mp4 vs webm
- mp4 (H.264 + AAC): universal compatibility. iMessage, Twitter, Slack, every browser.
- webm (VP9): 30-50% smaller for the same quality, but Safari < 14 cannot play it.
Auto-play loops in HTML
For a true GIF-replacement embed, use <video autoplay loop muted playsinline src="...">. Browsers only autoplay muted video, so do not strip the muted attribute even when there is no audio track.
Loop strategies explained
- Once: single playthrough; perfect for "video that fires once on hover".
- Finite N: pre-bakes N repetitions into the file; great for chat platforms that won't loop.
- Infinite: uses container-level metadata; the player has to respect the loop attribute.
Tips & best practices
Always pick mp4 unless you need webm
mp4 + H.264 plays everywhere. webm is smaller but still has compatibility gaps on older platforms.
Infinite loops are best done via HTML
Pick "once" + use <video loop> in HTML: the file stays small and the player handles the loop.
GIFs are silent, so is the output
The converted file has no audio track. If you need sound, start with a real video file instead of a GIF.
Privacy & security
Conversion runs entirely in ffmpeg.wasm inside your browser. The source GIF is never uploaded, logged, or stored. Engine artefacts are served from our own origin (not a third-party CDN).
Related tools
- Video to GIF Converter
Turn any mp4, webm, mov, or mkv into a high-quality animated GIF: fully in your browser via ffmpeg.wasm. Pick a time range, FPS, width, and dither; we generate an optimised palette in a single click.
Video Tools
- Video Compressor
Shrink mp4, webm, and mov videos right in your browser with ffmpeg.wasm. Choose a target preset (web 720p / 1080p, Discord 25 MB, Twitter 512 MB) or set a custom H.264 CRF: your files never leave the device.
Video Tools
- Video Trimmer
Trim mp4, webm, mkv, and mov videos in your browser with ffmpeg.wasm. Lossless (-c copy) for instant cuts at keyframes, or frame-accurate re-encode when you need precision. No upload, no signup.
Video Tools
- Video Format Converter
Convert mp4, webm, mkv, and mov videos to any of those targets: fully in your browser via ffmpeg.wasm. Pick the container; we auto-pair the right H.264 / VP9 / passthrough codec for maximum playback compatibility.
Video Tools
- Video Frame Extractor
Extract still frames from any video as PNG or JPG: every N seconds, every N frames, at a single timestamp, or N evenly-spaced thumbnails. Runs entirely in your browser via ffmpeg.wasm. Downloads as a ZIP.
Video Tools
- XML Formatter & Validator
Pretty-print, minify, and validate XML with configurable indentation, attribute formatting, and well-formedness checks
Developer Tools
Frequently Asked Questions
Why is the converted file so much smaller?
GIFs are limited to 256 colours and have no inter-frame compression. Modern video codecs (H.264 in mp4, VP9 in webm) compress changes between frames, so the same animation is typically 10-20x smaller.
Will it auto-loop like a GIF?
On the web, embed it with <video autoplay loop muted playsinline> and it will behave exactly like a GIF: except it’s smaller and CPU-friendly. The Once mode pairs perfectly with HTML <video loop>.
Does the output have sound?
No. GIFs do not have an audio track, so the converted file is silent. (Browsers require muted videos to autoplay anyway, so this is usually what you want.)
Should I pick mp4 or webm?
Pick mp4 for universal compatibility (Twitter, iMessage, Slack, every browser). Pick webm for the smallest file, but be aware Safari < 14 cannot play it.
Does the file get uploaded?
No. Conversion runs locally via ffmpeg.wasm. The engine artefacts are served from the same origin under /ffmpeg/<version>/.