How to convert a GIF to MP4
- Drop your GIF above, paste it, or try the sample.
- Choose how many times the loop repeats. The video length updates as you pick.
- If the GIF has transparent parts, choose a background color.
- Press Convert to MP4, check the video and its size, then press Download MP4.
What stays the same and what changes
| Your GIF | The MP4 | |
|---|---|---|
| Frames and timing | Each frame has its own delay | Same frames, same delays |
| Transparency | Supported | Not possible: filled with your background color |
| Sound | None | None |
| Looping | Built into the file | Up to the player (see below) |
| Width and height | Any number | Even numbers only |
Three things to expect:
- Odd sizes lose one row or column. H.264 needs even numbers, so a 481 × 271 GIF becomes a 480 × 270 video. The tool trims the edge instead of stretching the picture.
- Tiny GIFs get bigger. If the shorter side is under 128 px, the picture is enlarged by a whole number (32 × 32 becomes 128 × 128), which keeps pixel edges crisp.
- Colored edges can soften. H.264 stores color at half the resolution of brightness, so thin colored text and pixel art can look a little softer than in the GIF.
How much smaller is the MP4?
Usually much smaller, but not always. These are real runs of this tool (Chrome on a Mac, November 2026):
| GIF | Frames | GIF file | MP4 file | Change |
|---|---|---|---|---|
| Sample GIF on this page, 360 × 360 | 6 | 221 KB | 38 KB | 83% smaller |
| Animated portrait, 240 × 213 | 9 | 376 KB | 58 KB | 84% smaller |
| Cartoon cat, 240 × 240 | 9 | 130 KB | 48 KB | 63% smaller |
| Cartoon flame, 240 × 240 | 9 | 97 KB | 45 KB | 54% smaller |
| Noisy test pattern, 480 × 270 | 75 | 794 KB | 324 KB | 59% smaller |
| Flat 32 × 32 icon | 8 | 666 B | 1.3 KB | 2× larger |
Very small, flat GIFs can grow, because a GIF of a few colors is already tiny and this one was also enlarged to 128 × 128. The tool shows both sizes before you download.
How to make the MP4 loop
An MP4 doesn't loop by itself: the player decides. That leaves two options.
To get a longer video, use Repeat the loop. A 2-second GIF at 5× is a 10-second video that plays the animation five times.
On your own website, ask the browser to loop it. This is the usual way to replace a heavy GIF, and browsers only autoplay video that is muted:
<video src="clip.mp4" autoplay loop muted playsinline></video>
When to keep the GIF
Convert when the destination wants a video. YouTube's list of upload formats, for example, includes MP4 and doesn't include GIF (checked November 2026).
Keep the GIF where only a GIF animates, such as Discord and Slack emoji. The GIF compressor gets those under their size limits instead.
For a vertical feed, change the shape first: the GIF cropper crops to 9:16, and you convert the result here.
What your browser needs
The video is encoded by your browser's own H.264 encoder (a feature called WebCodecs), which is why nothing has to be uploaded. Not every browser has one. The tool checks as soon as you open a GIF and tells you if yours can't do it. We tested the conversion in Chrome on a Mac, and the file size can differ on another device, because each one uses its own encoder.
