Account

What new tool do you want?

Image Tools

GIF Compressor & Optimizer

Make an animated GIF smaller without uploading it. Frames are cropped to what changes, unchanged pixels are reused, and you can cut colours, add lossy compression, shrink the size or drop frames, or just give a target size in KB.

How to use

  1. 1Drop an animated GIF. Its size, dimensions and frame count are shown.
  2. 2Pick Lossless, Balanced or Strong, adjust colours, lossy level, size or frames, or type a target size in KB.
  3. 3Press Compress, check the preview and the saving, then download the GIF.

Frequently asked questions

What does Lossless do?

It keeps every colour of every frame exactly (unless a frame needs more than 255 colours plus transparency, when the closest ones are merged) but rewrites the file so each frame only stores the rectangle that changed, with unchanged pixels marked transparent. GIFs made by screen recorders and simple converters, which store every frame in full, often shrink a lot this way with no visible change. A GIF that's already optimised may not get smaller.

What does the lossy slider do?

It treats a pixel as unchanged if its colour moved by less than the slider value since it was last drawn, so noise and slight flicker in backgrounds stop costing bytes. The error can't build up: each pixel is compared with the colour it was last drawn with, not the previous frame.

Why can't it reach my target size?

The target search goes up to 16 colours, 40% of the original size and every third frame. Long, large or very busy animations (video clips) can still be bigger than that. Cut the length first, or convert to MP4 or WebP if the site accepts them; they're much smaller than GIF.

Does dropping frames make it play faster?

No. The time of each dropped frame is added to the frame before it, so the animation lasts as long as before; it's just less smooth.

Is my GIF uploaded?

No. It's decoded and re-encoded in your browser.

Sources

Why GIFs get so big

GIF stores up to 256 colours per frame and compresses each frame with LZW, which works well on flat colour and badly on noise and gradients. A naive encoder writes every frame as a full picture, so a 5-second, 480-pixel clip at 25 frames per second stores 125 full images. Most of each frame is usually the same as the one before, and that's what this compressor removes first.

Example: a screen recording

In a GIF of a cursor moving over a settings page, almost nothing changes between frames except the cursor and the menu it opens. Lossless rewriting stores, for each frame, only the small rectangle around those, so most of each frame costs nothing. Balanced then shares one palette and ignores the faint noise that screen capture adds; on a flat interface that's invisible. If it's still too big for a chat app, halving the size cuts the pixel count to a quarter.

What each setting costs

Fewer colours make gradients and photos look banded; flat graphics hardly change. A shared palette is smaller and stops colours flickering between frames, but a clip whose colours change a lot (a sunset, a scene cut) may look worse than with a palette per frame. A higher lossy level can leave faint trails behind moving objects. Scaling down saves the most for photographic GIFs, since size grows with the pixel count.

Related tools

More: Image Tools