How to convert GIF to MP4
- Choose your GIFs or drop them on the box above.
- Each GIF is decoded frame by frame and encoded as an H.264 MP4.
- Download the videos, one by one or as a ZIP.
Why MP4 is smaller
GIF compresses each frame on its own with a simple method from 1987. H.264 video only stores what changes between frames, and does so far more efficiently. For typical animations and clips, an MP4 is often a small fraction of the GIF’s size, while showing all the frames of the original.
Using MP4 on a website instead of a GIF
A silent, looping video behaves just like a GIF:
<video autoplay loop muted playsinline src="animation.mp4"></video>
Browsers only autoplay videos that are muted, and playsinline stops iPhones opening the video full screen.
Uploading to social media
- Instagram and TikTok: upload the MP4 as a video or Reel. Very short clips are fine; some apps ask for at least a few seconds, so consider a slower or longer GIF.
- X (Twitter): accepts GIFs directly and converts them to video itself, but uploading MP4 gives you control over quality.
What you get
An MP4 with H.264 video at high quality, the same size in pixels as the GIF (rounded to an even number, which video requires) and no sound. Transparent areas become white.
Converting several GIFs
Choose several GIFs at once, or drop a whole selection onto the box. Each becomes its own MP4 with the same name, and they can be saved together in one ZIP. Large GIFs with hundreds of frames take a little longer, as every frame is decoded and encoded; the percentage shows progress.
Privacy
GIFs are decoded with gifuct-js and encoded with your browser’s video encoder through Mediabunny, all on your device. Nothing is uploaded.
Questions
Why convert a GIF to MP4?
Instagram, TikTok and many other platforms don't accept GIF uploads, but accept MP4. MP4 is also usually much smaller than the same GIF, so websites load faster. Google's PageSpeed tools recommend video instead of large animated GIFs for this reason.
Will the MP4 loop like the GIF?
The MP4 contains one play of the animation. Whether it loops depends on where it's shown; most social apps loop short videos automatically, and on a website you can add the loop attribute to the video.
What happens to transparent areas?
Standard MP4 video has no transparency, so transparent parts of the GIF become white.
Is the timing kept?
Yes. Each frame keeps its own display time from the GIF. Frames set to an extremely short time are played at 100 milliseconds, as browsers do when they show the GIF.
Last reviewed 9 November 2026