GIF to MP4 Converter

Turn a heavy animated GIF into a small, smooth MP4 that autoplays everywhere. Converted on your device — nothing is uploaded.

By LK Forge · Published 6 August 2026 ·

Drop your file here, or click to choose Processed privately in your browser — nothing is uploaded

Download
100% private. Your file is processed in your browser with ffmpeg (WebAssembly) and is never uploaded. Big or long files take longer and use more memory — for those, trim first.

Why is an MP4 smaller than the same GIF?

GIF to MP4 converts an animated GIF into H.264 video. A GIF stores every frame as an LZW-compressed indexed bitmap capped at 256 colours per palette, with no interframe motion compensation and no audio track at all, so the same animation is typically several times larger as a GIF than as an MP4. GIF also stores frame delays in hundredths of a second, and browsers clamp very short delays upward, which is why so many GIFs are effectively locked near 10 frames per second while an MP4 carries the true frame rate. This tool encodes with libx264 at CRF 23 in the yuv420p pixel format, pads odd dimensions to even values as H.264 requires, and enables faststart. X transcodes uploaded GIFs to video for the same size reasons. Conversion runs locally through ffmpeg.wasm, so your GIF is never uploaded; the engine itself downloads once per session, on your first conversion.

How to Use the GIF to MP4 Converter

Three steps, all in your browser.

  1. Load your GIF

    Drag an animated .gif onto the box or click to choose one.

  2. Convert to MP4

    Click Convert. The frames are encoded to H.264 video — the same animation at a fraction of the file size.

  3. Download the MP4

    Preview and download the .mp4, ready to post where video autoplays and loops.

Why is the MP4 so much smaller, and what do you lose?

The size difference comes from motion compression, not from better pictures.

A GIF stores every frame as a separate LZW-compressed image drawn from a palette of at most 256 colours. It has no concept of motion — nothing in the format can say “this block moved four pixels left”. H.264 is built entirely around that idea, and that is where the difference comes from.

CapabilityAnimated GIFH.264 MP4 (this output)
Colours per frame256, from a palette8-bit colour, 4:2:0 sampled
Compression between framesNone — whole frames or rectanglesFull motion compensation
Transparency1-bit, on or offNone
AudioNot supportedSupported (silent here — the GIF had none)
Hardware decodingNo, CPU onlyYes, on effectively every device since ~2010
Battery cost on mobileHighLow
Dimension constraintsAnyWidth and height must be even
Typical size, same animationBaselineUsually several times smaller

Transparency disappears. GIF supports one fully transparent palette index; H.264 supports no alpha at all. Anything transparent is composited onto a solid colour, usually black, so a sticker or logo GIF meant to sit on a coloured background comes out with a black box around it.

Fine coloured detail softens. The MP4 is written as 4:2:0, meaning colour is sampled at half resolution both horizontally and vertically. A GIF’s crisp one-pixel caption text and hard-edged line art are precisely the content that suffers most from that.

Odd dimensions get cropped. H.264 requires even width and height, so a 501-pixel-wide GIF loses its last column of pixels. Check the preview before posting. If you are not yet sure MP4 is the right target for where you are posting, the GIF to Video page has a platform-by-platform format table; to go the other way, use MP4 to GIF.

Frequently Asked Questions

How do I convert a GIF to MP4?
Load your animated .gif and click Convert. The tool encodes the GIF’s frames into an H.264 MP4 in your browser, then lets you preview and download it. Nothing is uploaded.
Why convert GIF to MP4?
Animated GIFs are limited to 256 colours and are surprisingly large. GIF caps each palette at 256 colours and compresses with LZW, which is far weaker than modern video coding, so an MP4 of the same animation is usually several times smaller with smoother colour. That is why X converts uploaded GIFs to video behind the scenes. Doing it yourself means faster pages and smaller uploads.
Will the MP4 loop and autoplay like a GIF?
On most modern platforms and in HTML, a short muted MP4 autoplays and can be set to loop, giving the same effect as a GIF. In your own pages, use a <video> tag with the autoplay, loop and muted attributes. The MP4 this tool writes is silent, which is what lets browsers autoplay it.
Is my file uploaded to a server?
No — the GIF never leaves your browser. Conversion runs entirely on your device with ffmpeg compiled to WebAssembly, so the file is never uploaded, logged or stored. The video engine (about 10 MB) downloads the first time you convert in a session; after that, no further network requests are made.
Does the MP4 have sound?
No — the MP4 is silent. GIFs contain no audio, so there is nothing to carry over. That’s expected and is why GIF-style MP4s autoplay on platforms that block sound by default.

More video tools