Why GIF is so big
The GIF format is from 1987 and was never meant for moving images. It stores each frame almost uncompressed and doesn't compress motion between frames efficiently — unlike modern video codecs. So the file size explodes: a few seconds of animation quickly hit double-digit megabytes. That's not a malfunction but the nature of the format. Shrinking a GIF means turning four dials.
The four levers, sorted by impact
| Lever | Impact | Visible loss |
|---|---|---|
| Dimensions (width/height) | very high | low at small display size |
| Length (seconds) | high | — |
| Frames (frame rate) | high | low for loops |
| Colors (up to 256) | medium | banding possible in gradients |
1. Reduce dimensions — the strongest lever
File size grows with area, so roughly with the square of the width. Halving a GIF from 800 px to 400 px roughly quarters the data. For chat GIFs, 320–480 px wide is plenty — anything more is shown small anyway.
2. Shorten the length
Every second costs megabytes linearly. A good loop animation is 2–4 seconds; anything beyond that can usually be trimmed with no loss of meaning. Often half the file size is in seconds nobody misses.
3. Lower the frame rate
GIFs don't need a cinema frame rate. 10–15 fps is enough for gestures and loops — for a shaky reaction you'll barely see a difference from 30 fps, but you save half the frames.
4. Reduce colors
GIF allows up to 256 colors per frame, but many animations get by with 64–128. Fewer colors = smaller file. The catch: with smooth gradients, color reduction can create visible stripes (banding) — so find the minimum that still looks good.
All together — browser-local
The GIF compression tool turns these dials without the GIF being uploaded. Practical order: first bring the dimensions to the actual display size, then check length and frame rate, and finally reduce colors as far as it still looks good. In that order you get the most out of it.
The honest advice: does it have to be a GIF?
If a GIF stays too big despite every dial, the format itself is to blame. For your own website, an animated WebP or a muted auto-play video is the clearly better choice — smaller at better quality. GIF only pays off where universal playback without a player matters: in messengers and emails. Everywhere else, switching format beats any amount of shrinking.
In short
- Dimensions first — the strongest lever by far.
- Then length and frame rate — trim seconds and drop to 10–15 fps.
- Colors last — 64–128 often suffice.
- Or switch format — WebP/video win off-messenger.