How to Shrink a GIF (or Grab a Still)
A few seconds of animation can outweigh a whole page of photos. Here's how to get it under control.
GIFs are heavy out of all proportion to what they show. A three-second loop can outweigh every photo on the page around it, because a GIF is really a stack of full images played in sequence — thirty frames means something closer to thirty pictures than one.
Compress GIF brings that down. If you only need one frame rather than the animation, GIF to PNG is the better tool — skip to the bottom.
Your animation survives
The reassuring part: compressing a GIF here doesn't drop frames or change the timing. Every frame and the original playback speed are preserved — what changes is how efficiently each frame's pixels are stored. Your loop still runs the same length at the same speed, just lighter.
That's a real distinction. Plenty of "GIF optimisers" shrink files by deleting frames, which makes the animation choppier. This doesn't.
The lossy setting
The slider runs from 20 to 200 and defaults to 80. Higher means more aggressive compression and a smaller file. It's not a quality percentage — it's a tolerance for how much each frame's pixels may be approximated.
- 20–50 — conservative. Modest savings, essentially no visible change.
- 80 — the default, and a good place to start. Substantial savings on most real GIFs.
- 120–200 — aggressive. Expect visible speckling and banding, especially in gradients. Worth it only against a hard size limit.
You can also set a target size in MB instead, and the tool will step up through increasing lossy levels until it lands at or under your number. Same idea as the target-size compressors — see our guide to exact size limits.
It isn't magic, though, and it's worth knowing the failure mode: if the most aggressive setting still overshoots your target, you get that maximally-compressed file back rather than an error. That's the worst-looking version of your GIF and it missed the number, so check the size you actually got before uploading it anywhere.
The first run downloads a tool
Worth flagging, because it's unusual on this site: real GIF compression needs a proper encoder, so the first time you use this the browser fetches one — a WebAssembly build of gifsicle, the long-standing command-line GIF optimiser. It's cached afterwards, so only the first run pays for it.
Your GIF still doesn't go anywhere. The download is code coming down, not your image going up — the compression happens on your machine once the encoder has loaded. But it does mean the first run is slower than the ones after it, and that it needs a connection to get started.
Why GIFs are so big in the first place
Two reasons worth knowing, because they shape what you can fix.
First, GIF is capped at 256 colours per frame. That's why photographic GIFs look dithered and speckled — the format is throwing away almost all the colour information before compression even starts. It's a format designed for flat graphics, doing a job it was never built for.
Second, there's no motion compression. Video formats store what changed between frames; GIF largely stores each frame. A GIF of a mostly-still scene with one moving element still pays nearly full price for every frame.
Which leads to the honest answer: if you can use a video instead, do. A short muted autoplaying video is typically a fraction of the size at better quality. The catch is that it's an embedding change, not a re-export — different markup, different behaviour in email. Where GIF still wins is universal support and drop-anywhere convenience, and that's a real thing to want.
Just need one frame?
If what you actually want is a thumbnail, a preview, or a still to put in a document, don't compress the animation — take a frame out of it. GIF to PNG gives you a still image, losslessly: the PNG is a pixel-exact copy of the frame, so whatever the GIF looked like is what you get, dithering and 256-colour limits included. It won't clean anything up, but it won't degrade anything either.
Two things to expect. You get the first frame — there's no frame picker, so if the moment you want is halfway through the loop, this isn't the tool for it. And the still will look calmer than the animation did, which isn't the tool improving it: dithering is most obvious when it churns between frames, so freezing one stops the shimmer without changing a single pixel.
If the frame is photographic and you want it lighter, PNG to JPG takes it from there — our guide to that conversion covers when it's the right call.
FAQ
Will compressing my GIF drop frames or change the speed?
No. Every frame and the original timing are kept. Only how each frame's pixels are encoded changes.
Why is my GIF still huge?
Probably because it's photographic, or long. GIF has no motion compression and only 256 colours, so it's structurally inefficient for anything but short, flat-coloured animation. A video is the real fix.
How do I get a single image out of a GIF?
Use GIF to PNG for a still frame rather than compressing the animation.