How to convert GIF to MP4
- Drop your GIF into the box.
- Choose how many times the animation should play in the video (a GIF loops, an MP4 plays once).
- Click Convert to MP4 and download the video.
Why convert GIF to MP4?
- Smaller: MP4 compresses animation far better than GIF — often 80–90% smaller.
- Better colours: GIF is limited to 256 colours per frame; MP4 isn't.
- Upload anywhere: Instagram, TikTok and many forms accept MP4 but not GIF.
How it works
Every frame of the GIF is decoded and encoded to H.264 with your browser's built-in video encoder (WebCodecs), using each frame's own timing. Transparent areas become white.
Troubleshooting
- "Your browser can't encode video": update your browser. Chrome, Edge and Safari have had the video encoder for years; very old versions don't.
- The video is very short: a 2-second GIF becomes a 2-second video. Set Play the loop to 5 or 10 times to get a clip that Instagram or TikTok accepts.
- Black or white edges: transparent parts of the GIF become white, because MP4 has no transparency.
- The size is slightly different: H.264 needs even dimensions, so a 301 px wide GIF becomes 300 px.
GIF to MP4 for social media
Instagram and TikTok
Both accept MP4 but not GIF. Loop the animation 3–5 times and keep 720 or 1080 px; upload the MP4 from your camera roll.
X, Discord and Slack
MP4 files are often 80–90% smaller than the GIF and load instantly, and most apps loop short videos automatically.
Websites
Use the MP4 with <video autoplay loop muted playsinline> instead of a GIF: same look, a fraction of the size.
Frequently asked questions
Is my GIF uploaded?
No. The video is encoded in your browser.
Which browsers work?
Recent Chrome, Edge, Safari and Firefox have the video encoder this tool needs.
Why is there no transparency?
MP4 video can't be transparent, so transparent pixels become white.
Does the MP4 have sound?
No. A GIF has no audio, so the video is silent.
Can I convert an MP4 back to a GIF?
Yes, with our Video to GIF converter.