Why your GIF got bigger after compressing
Because the file was already optimised, or the compressor rebuilt its palette and frame rectangles worse than they were — a second pass on an already-small GIF often adds bytes instead of removing them.
The three real causes
A GIF keeps most of its weight in two places: the colour table each frame points at, and the rectangle it has to redraw. Every compressor rewrites both. If the file already went through an optimiser, those two structures are about as tight as they get, and a second rewrite can land slightly worse — you pay for the bookkeeping and win nothing.
The second cause is palette re-quantisation. Dropping 256 colours to 128 is not free: the tool has to map every pixel to a new index, and if the source was dithered, the remap can make neighbouring pixels disagree, which costs compression on the next frame.
The third is a re-encode that changes how frames are stored. Some tools decode to raw frames and re-emit a fresh global palette. That is fine for a photo-derived animation and usually a loss for a UI recording that already shared one palette across every frame.
How to tell which one it was
This is why the compressor on this site keeps the original download when the result is not smaller, and says so in the row instead of quietly handing you a heavier file.
- Compare the exact bytes, not the file name: a file called something-compressed.gif proves nothing.
- Try the lossless setting first (256 colours, lossy 0). If that alone produces a smaller file, the original was never optimised and you can stop there.
- If lossless is larger, the file was already optimised. The only levers left that actually pay are fewer colours and a smaller canvas — and both change the picture.
What actually works when the file will not shrink
Stop treating bytes as something you can squeeze out of a file that has none. Decide which of the three trade-offs you can accept, in this order: fewer colours (cheapest visually on flat art), a narrower canvas (usually the biggest saving), or fewer frames (a different animation).
If the destination accepts video, a WebM of the same clip is typically several times smaller than the GIF at the same visual quality. GIF survives because it autoplays everywhere, not because it compresses well.
A note on the word “lossless”
Lossless means the pixels come back identical, not that the file gets smaller. For an animation that was already optimised, the honest lossless result is “same size, same pixels”, and a tool that claims otherwise is either re-encoding (not lossless) or comparing against a bigger intermediate file.
Questions
- Why is my compressed GIF bigger than the original?
- Usually because the original was already optimised, so the rewrite adds overhead without removing anything. The other common cause is palette re-quantisation on a dithered source.
- Does compressing twice make it smaller?
- Almost never. The second pass starts from an already-tight file; if the result is not smaller, keep the original.
- Should I drop colours or resize?
- Resize first if the animation will be viewed smaller than it was made. Drop colours first if the animation is flat art and has to stay at its current dimensions.
- Is a smaller GIF always better?
- No. Below a certain size the visible cost — banding in gradients, soft text edges — is worse than sending a WebM or a shorter clip.