To convert a GIF to MP4 for free, drop the GIF above and click Convert to MP4. The animation is re-encoded to H.264 video — files up to 95 MB on our compute server (erased as soon as the result is sent), larger ones in your browser; no account — and the MP4 is usually several times lighter than the GIF while looking the same, because a GIF stores each frame inefficiently with only 256 colours.
Why a GIF is so heavy
GIF dates from 1987. Each frame is stored almost on its own, with a palette of at most 256 colours. A modern video codec like H.264 only stores what changes between frames and compresses colours far better. For the same animation, the MP4 is commonly 5 to 10 times smaller, sometimes more for long or photographic GIFs.
| GIF | MP4 (H.264) | |
|---|---|---|
| Colours | 256 per frame | Millions |
| Typical size for the same clip | Reference | Often 5 to 10 times smaller |
| Transparency | Yes (on/off per pixel) | No |
| Sound | No | Possible (not added here) |
| Plays automatically in a loop | Everywhere | Depends on the app or player |
| Accepted by Instagram, TikTok, YouTube Shorts uploads | No | Yes |
What to expect from the conversion
- Same look: the MP4 cannot add colours the GIF never had, but it will not add banding either.
- Transparent areas become a solid colour (usually black), because MP4 has no transparency. Keep the GIF, or convert to WebP or APNG, for a sticker that must float over a background.
- Looping: an MP4 plays once unless the player loops it. Messaging apps and social networks loop short clips automatically; on a web page, use a video tag with the loop attribute.
- Odd sizes are rounded to an even number of pixels (one pixel at most), which H.264 requires.
When converting is worth it
- Posting a GIF on Instagram, TikTok or YouTube Shorts, which only accept video files.
- Speeding up a web page: replacing a 5 MB GIF with a 600 KB MP4 cuts loading time on mobile.
- Sending by email or chat when the GIF is over the attachment limit.
- Editing the animation in a video editor (adding music, captions, cutting).
Going the other way? Video to GIF turns a clip into an animated GIF, with control over frame rate and width.