Skip to content

Compress Animated GIF

Make an animated GIF smaller while it keeps playing exactly like the original — every frame, every pause, the same loop.

Drop GIFs here

Compressed on your device — nothing is uploaded, so there is no upload limit

How animated GIF compression works here

A still image can only be compressed within itself. An animated GIF has a second, bigger opportunity: most of each frame is the same as the frame before. The compressor uses that before it touches a single color.

Frame differencing

Each frame is compared with what the viewer is already seeing. Only the rectangle that changed is stored, and pixels inside it that did not change are written as transparent, so the previous frame shows through. For animations with a static background this alone can cut the size by more than half.

Transparency and disposal

Animated stickers and cut-outs are harder: when an object moves, the spot it leaves has to become transparent again. The compressor looks one frame ahead and, only where needed, tells the viewer to clear the previous frame’s area first. That keeps transparent GIFs small without ghost trails.

Lossy LZW across frames

With a lossy level, pixels whose color changed by only a hair are treated as unchanged, and the LZW encoder may pick a nearly identical color to reuse a longer sequence. Both steps compare against what is actually on screen, so small errors never pile up from frame to frame.

Keep the animation smooth

Setting Effect on motion Use it when
Merge identical framesNone — same look and timingAlways (on by default)
Lossy / fewer colorsNone — frames and timing unchangedFirst choice for smaller files
Drop 1 in 4Barely noticeableHigh frame-rate clips (25–50 fps)
Drop 1 in 3Slightly choppierTalking heads, slow pans
Drop 1 in 2Noticeably choppierA hard size limit is more important than smoothness

When a frame is dropped, its display time is added to the frame before it, so the animation keeps its total length and stays in sync with any captions. Browsers stretch delays under 20 ms to about 100 ms, so frames that short are never merged — that would change how fast the GIF plays.

Looking for the fastest route under a platform limit? Use the GIF file size reducer. For lossless-only optimization, see the GIF optimizer. Back to the GIF compressor.

Compress animated GIF: questions

Does compressing an animated GIF remove frames?

Not unless you choose to. Lossless, Balanced, Strong and Maximum all keep every frame. Only identical back-to-back frames are merged (the merged frame shows for their combined time), and you can switch that off under Colors, lossy, size & frames.

Why does my compressed GIF play at the same speed?

Because every frame keeps its original delay. Tools that convert a GIF to video and back often resample it to a fixed frame rate, which changes pauses and can speed the animation up; this compressor writes the original timing back unchanged.

Can I compress an animated GIF with a transparent background?

Yes. Transparent pixels stay transparent. When a moving object leaves an area that must become transparent again, the compressor marks the previous frame to clear its area first, so the output has no ghost trails.

Which level should I use for an animated GIF made from a video?

Start with Balanced. Video GIFs are usually already optimized, so Lossless rarely helps; Balanced typically saves 10–15% with no visible change and Strong 25–30% with light grain. If you need more, drop 1 in 2 frames — motion gets a little choppier but the size roughly halves.

How long does it take to compress an animated GIF?

Usually one to a few seconds. The GIF is decoded once, so changing the level afterwards re-encodes quickly. Target-size mode may run a few attempts to find the best quality under your limit.