GIF to MP4
Turn an animated GIF into a video file that plays everywhere and is usually much smaller. The frame timing of the GIF is kept, transparent parts get a background colour, and you can repeat a short loop several times. Your GIF is converted on your device.
or drop a file here · GIF · up to 100 MB
Processed on your device. Your files are not uploaded.
About GIF to MP4
GIF was designed in the late 1980s for small graphics. Each frame is stored as an indexed picture with its own palette, and nothing is shared between frames except what a frame leaves unchanged. Modern video codecs predict each frame from the previous ones and code only the difference, so the same animation usually needs far fewer bytes as an MP4 or WebM file. Many sites quietly convert uploaded GIFs into video for this reason.
How the conversion works
The GIF is decoded frame by frame, honouring the display time and the disposal rule of every frame, so the animation looks exactly as it does in a browser. Each full picture is then passed to your browser’s video encoder. Frame timing is kept: a GIF with a long pause on its last frame keeps that pause in the video.
Two differences between the formats need a decision:
- Looping. A GIF can say “repeat forever”; a video file cannot. Choose how many times the animation should play inside the file, up to ten.
- Transparency. These videos cannot be see-through, so transparent pixels are painted white or black.
Video encoders also need even pixel sizes, so a GIF that is 301 pixels wide gets one extra column of background.
Worked example
A 4.6 MB product animation, 640 × 360 and 3 seconds long, is too heavy for a landing page. Choose it, keep MP4, set Play the animation to 3 times and select Convert to MP4. The preview player shows the 9-second video; the result line compares its size with the original GIF so you can see the saving straight away.
Notes
- MP4 (H.264) plays on almost every device; WebM (VP9) is a good choice for websites.
- The video has no sound, just like the GIF.
- Encoding needs a browser with WebCodecs: Chrome or Edge 94+, Firefox 130+ on computers, Safari 16.4+.
- To go the other way, use Video to GIF.
How to use GIF to MP4
- Choose an animated GIF (up to 100 MB).
- Pick MP4 or WebM, how many times to play the animation and, for transparent GIFs, a background colour.
- Select Convert, watch the video and download it.
Privacy: how it works
Your files are processed on your own device by your browser. They are not uploaded to any server.
Frequently asked questions
Why is the MP4 smaller than the GIF?
Modern video codecs such as H.264 store only what changes between frames and compress it far better than GIF, which dates from 1987. Photo-like animations often shrink several times; simple flat-colour GIFs gain less.
Will the video loop like the GIF?
Video files do not loop by themselves. Choose how many times to repeat the animation in the file; websites and chat apps often loop short videos anyway.
What happens to transparency?
MP4 and WebM videos made here cannot be see-through, so transparent pixels are filled with white or black, as you choose.