GIF to MP4 Converter
Turn a heavy animated GIF into a small, smooth MP4 that autoplays everywhere. Converted on your device — nothing is uploaded.
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.
-
Load your GIF
Drag an animated .gif onto the box or click to choose one.
-
Convert to MP4
Click Convert. The frames are encoded to H.264 video — the same animation at a fraction of the file size.
-
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.
| Capability | Animated GIF | H.264 MP4 (this output) |
|---|---|---|
| Colours per frame | 256, from a palette | 8-bit colour, 4:2:0 sampled |
| Compression between frames | None — whole frames or rectangles | Full motion compensation |
| Transparency | 1-bit, on or off | None |
| Audio | Not supported | Supported (silent here — the GIF had none) |
| Hardware decoding | No, CPU only | Yes, on effectively every device since ~2010 |
| Battery cost on mobile | High | Low |
| Dimension constraints | Any | Width and height must be even |
| Typical size, same animation | Baseline | Usually 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?
Why convert GIF to MP4?
Will the MP4 loop and autoplay like a GIF?
Is my file uploaded to a server?
Does the MP4 have sound?
More video tools
MP4 to GIF
Turn an MP4 clip into a crisp animated GIF.
MOV to MP4
Convert QuickTime MOV to a playable MP4.
MKV to MP4
Convert Matroska MKV to a playable MP4.
WebM to MP4
Convert WebM to MP4 for editors and uploads.
AVI to MP4
Convert legacy AVI to a modern, smaller MP4.
GIF to Video
Convert an animated GIF into a video file (MP4).
Video Trimmer
Cut a clip out of any video by start and end time.
MP4 to MOV
Remux an MP4 to MOV for Apple apps — lossless.