GIF to MP4
Turn your animated GIF into a compact web video — fully in-browser. Most browsers output WebM; you get MP4 where the browser supports it.
Browser Compatibility Notice
Your current browser does not support the WebCodecs API required for local client-side GIF to video encoding. Please use a modern version of Google Chrome, Microsoft Edge, or Apple Safari for this tool.
Drop a GIF here
Select an animated GIF to convert to MP4
Max file size: 20MB
Instant
No encoding wait time
Private
Processed entirely in your browser
Compatible
MP4/WebM plays on all devices
100% Private: Your file is processed entirely in your browser. Nothing is uploaded to any server.
Animated GIF files are notoriously inefficient containers for moving images, frequently consuming megabytes of bandwidth for just a few seconds of low-resolution animation. This tool decodes animated GIFs frame by frame and re-encodes them into modern, compact web video streams directly in your browser. All decoding and recording run on your local hardware using native WebCodecs and MediaRecorder APIs, ensuring that your media files remain on your device and are never uploaded to a server.
The conversion pipeline operates strictly in-memory: it parses the GIF data stream, paints individual frames onto an offscreen canvas at their native delays, and captures the resulting playback via MediaRecorder into a standard MP4 container, unlocking fluid 25-frame-per-second playback. Depending on your browser engine, the tool outputs either standard WebM or MP4 video containers that stream seamlessly across mobile devices, modern web applications, and messaging platforms.
How it works
1. Drop a GIF here
Select or drop your animated GIF into the upload zone. The converter accepts GIF files up to 20 MB and inspects image dimensions and frame metadata immediately.
2. Click Convert to Video
Press “Convert to Video” to initialise the WebCodecs frame decoder and capture the animation through an off-screen recording stream.
3. Inspect the Converted Video preview
Watch the generated video looping side-by-side with your original GIF to verify motion cadence, image dimensions, and frame pacing.
4. Download your video file
Click the download button, labelled with your browser’s output format (such as “Download WEBM Video” or “Download MP4 Video”), to save the converted clip.
When you'd use it
Shrinking web page weight and boosting Core Web Vitals
Replacing legacy hero GIFs with lightweight web video elements dramatically accelerates Largest Contentful Paint (LCP) and slashes mobile data transfer costs.
Sending looping animations via mobile messaging apps
Platforms like WhatsApp and Instagram handle short video files with hardware-accelerated playback and smoother playback controls than oversized GIF files.
Embedding silent tutorials into mobile applications
App developers can embed concise feature walk-throughs as video files rather than GIFs, reducing the compiled application download size significantly.
Archiving screen captures on constrained storage
Converting extensive collections of technical UI screen recordings from GIF to video recovers gigabytes of local storage space without losing visible detail.
Inter-frame video compression vs uncompressed bitmap runs
The primary reason animated GIFs create enormous files is architectural: each frame stores an uncompressed or LZW-compressed raster table. Even if only a tiny mouse cursor moves across a static background, the GIF specification frequently repaints wide pixel regions across consecutive frames.
Modern video codecs like VP9 and H.264 approach animation dynamically. They divide frames into macroblocks and apply temporal motion estimation, transmitting only mathematical motion vectors and residual pixel errors between keyframes. This structural efficiency allows a 10 MB animated GIF to shrink down to a crisp 500 KB video clip with no discernible drop in sharpness.
How in-browser recording works across different browsers
Rather than delegating conversion to cloud render farms, this utility leverages the browser’s native WebCodecs ImageDecoder interface to parse raw GIF frames at hardware speed. Each decoded frame paints onto an internal canvas element captured as a real-time 25 FPS stream, which feeds directly into the browser’s built-in MediaRecorder engine.
Because container capabilities vary by browser vendor, the tool queries MediaRecorder.isTypeSupported to pick the best available codec. On Google Chrome and Microsoft Edge, it produces an optimised WebM video with VP9 encoding. On Apple Safari, it exports an MP4 video container. In browsers lacking WebCodecs support, an advisory banner prompts you to use a compatible modern browser.
Transparency and looping considerations
Standard video formats like MP4 and WebM do not support indexed alpha transparency in standard playback modes. If your original GIF featured a transparent background, the recording canvas flattens the transparent areas against a solid backdrop during rendering.
While the generated video file contains a single sequential timeline of frames, modern web browsers and mobile media players can loop the file continuously by applying the standard HTML5 video loop attribute.
Frequently asked questions
What file format will my downloaded video use?
The container depends on your browser’s encoding capabilities. Chrome and Edge produce high-efficiency WebM files, while Safari generates MP4 files. The download button displays your exact extension.
Why is the converted video so much smaller than my GIF?
Video codecs save only differences between moving frames, whereas GIF stores full raster bitmaps for each frame. This typically reduces file size by 80% to 95%.
What is the maximum GIF size supported by this tool?
The tool accepts animated GIFs up to 20 MB. Verification occurs entirely in browser memory as soon as you select your file.
Will background transparency in my GIF be preserved?
No. Standard MP4 and WebM video streams do not support alpha transparency, so transparent areas are filled with a solid background during recording.
Why do I see a compatibility notice in Firefox?
Firefox does not yet support the native WebCodecs ImageDecoder API required for fast client-side frame parsing. Use Google Chrome, Microsoft Edge, or Apple Safari for this converter.

