GIF to MP4
Turn an animated GIF into a compact MP4 that social apps, slides and video editors accept.
or drop them here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.
- Runs on your device
- No sign-up or watermark
- No fixed file size cap
The short answer
To convert a GIF to MP4, open the GIF here and press Convert to MP4. ffmpeg in your browser re-encodes the animation to H.264 with standard yuv420p colour, rounding odd dimensions to even ones so every player accepts it. The MP4 is usually far smaller than the GIF, and the file is never uploaded.
How to convert a GIF to MP4 for Instagram or X
- STEP 1
Choose the GIFs
Select one animated GIF or a batch. Only GIF files are accepted by this tool.
- STEP 2
Convert to MP4
Press Convert to MP4. There are no settings to adjust; quality is fixed at a level that looks like the source.
- STEP 3
Save the videos
Download each MP4. The summary shows the size before and after so you can see the saving.
Why turn a GIF into a video?
GIF stores each frame with simple lossless compression and a 256-colour palette, which is very inefficient for animation. H.264 records only what changes between frames and does it far better, so the same animation as MP4 is commonly many times smaller.
Several platforms and editors reject GIF uploads or convert them anyway, and presentation software and video editors handle MP4 more predictably. An MP4 also scrubs, pauses and plays at a steady speed.
What survives, and what does not
ffmpeg reads the GIF’s frames and their timing, rounds the width and height down to even numbers, which H.264 requires, and encodes with libx264 at quality 24 in the yuv420p pixel format that phones and browsers expect. Several GIFs can be converted in one run.
What you keep
Every frame and the original timing
Dimensions, give or take one pixel to make them even
A fixed quality setting, so there is nothing to get wrong
What you lose
Transparency, since H.264 MP4 has no alpha channel
Automatic looping: an MP4 loops only if the player or site is set to loop it
Bit-exact pixels: H.264 is lossy, and fine coloured pixel art can smear slightly
Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.
GIF to MP4 at a glance
| Input | GIF (animated) |
|---|---|
| Output | MP4, H.264 yuv420p, no audio |
| Quality | Fixed (CRF 24) |
| Transparency | Not kept |
| Batch | Yes |
| First-use download | About 32 MB |
| Works offline | After the first use |
If something goes wrong
The transparent background turned solid
MP4 with H.264 cannot store transparency, so clear areas are filled in. Keep the GIF, or use an animated WebP or PNG if you need the cut-out.
The MP4 does not loop
Looping is a player setting for video. Most social platforms loop short clips automatically; in slides, turn on the loop option for the video.
GIF to MP4 questions
How much smaller is an MP4 than a GIF?
It varies with the content, but for typical animations the MP4 is many times smaller. The results summary shows the exact before and after sizes for your file.
Can I post a GIF to Instagram as a video?
Convert it here first. Instagram takes MP4 uploads, and an H.264 file in yuv420p is the format it expects.
Does GIF to MP4 keep transparency?
No. H.264 MP4 has no alpha channel, so transparent areas become solid. That is a limit of the format, not of this converter.
Is my GIF uploaded?
No. ffmpeg converts it inside your browser tab, so the GIF is never sent to a server, and no account is needed.
Will the MP4 have sound?
No. GIFs have no audio, so the MP4 is silent. Add a soundtrack afterwards with the background music tool if you want one.