GIFs are surprisingly large for what they do. Here's why — and what you can do about it.
GIFs look low quality — washed-out colors, visible dithering, blocky gradients. You'd expect them to be tiny. But a 3-second GIF can easily hit 5–10 MB, while a 3-second MP4 of the same content might be 300 KB. Why?
A GIF stores each frame as a 2D grid of pixels. For a 480 × 270 GIF at 10 frames per second over 3 seconds, that's:
480 × 270 × 30 frames = 3,888,000 pixels
Each pixel is one byte (an index into a 256-color palette). Before compression, that's already ~3.7 MB of raw data. LZW compression reduces this, but only so much — LZW is a general-purpose algorithm, not optimized for video.
Modern video codecs like H.264 and WebP exploit temporal redundancy — pixels that don't change between frames are not re-encoded. A talking head video where the background is static can compress to 1/50th the size of a GIF of the same content.
GIF has no inter-frame compression. Every frame is encoded independently (with some LZW gains from repeated pixel rows, but nothing like a video codec).
GIF limits each frame to 256 colors. This forces dithering on photographic content, which destroys LZW compression efficiency — dithered pixels look random to the compressor, so they compress poorly.
Simple graphics (text, flat shapes, limited palette) compress very well. Photographic GIFs compress terribly.
For cases where you genuinely need a GIF (animated emails, services that only accept GIF), GifMash's compressor gets you the smallest possible file while keeping the format.
Compress your GIF now
GifMash reduces GIF file sizes instantly in your browser — no upload required.