Skip to content
All guides

Guide

GIF vs MP4: why GIFs are so big

The short answer

GIF stores every frame as a separate 256-colour image with no motion compression, so a few seconds becomes tens of megabytes. The same clip as an MP4 is usually 10 to 20 times smaller and looks better — but a GIF plays as an image anywhere, which is sometimes the whole point.

By Updated How we write these

What GIF is doing wrong

GIF dates from 1987 and was designed for small graphics on dial-up connections. Each frame is a complete image compressed the way a simple picture is, and there is no mechanism for saying "this frame is the previous one with a small change" — which is the entire basis of video compression.

It is also limited to 256 colours per frame. Photographic content has to be dithered down to that palette, which is why gradients in a GIF look speckled and why skin tones go blotchy.

Put together: a five-second clip that is 800 KB as an MP4 can easily be 15 MB as a GIF, and the GIF looks worse.

When a GIF is still right

Where the destination treats it as an image rather than a video. Some chat apps, forums, email clients, documentation and README files will display an animated GIF inline and will not play a video at all.

Where autoplay and looping have to be guaranteed. A GIF loops with no controls, no sound and no play button, everywhere, with no cooperation from the page.

For very short, very simple animations — a loading spinner, a two-frame reaction — where the size penalty is small and universal support is worth it.

Making the file behave

If it must be a GIF, cut the length first, drop the frame rate to 10–15fps, and reduce the dimensions. Those three between them decide almost everything about the size. Video to GIF exposes all three and shows the result before you save it.

If it can be a video, GIF to MP4 converts an existing GIF and usually shrinks it by an order of magnitude. Modern chat apps and social platforms will play it, and most of them were silently converting your GIF to a video on their servers anyway.

Conversions for this

Formats mentioned

Questions

Why is my GIF bigger than the video it came from?

Because GIF has no motion compression: every frame is stored as a full image. Video codecs store only what changed between frames.

Does converting a GIF to MP4 lose quality?

In practice it usually looks better, since the video is not restricted to 256 colours. The conversion itself is a re-encode, but from a source that was already heavily degraded.

Can I still autoplay an MP4 like a GIF?

Yes — a muted, looping, inline video autoplays on the web the way a GIF does, at a fraction of the size.

Read next

Tools for this