Skip to content
ToolMug

Compress GIF

GIF too big for a chat app, forum or email? Shrink it by making it narrower, using fewer colours, or keeping only every second or third frame. You see the new file size and the result next to the original before downloading. Dropped frames’ time is added to the frame before, so the animation still plays at the same speed.

Runs in your browser — nothing you enter is uploaded

or drop a GIF file here

The biggest savings come from a smaller width and dropping frames; fewer colours help with photos and gradients. Dropped frames’ time is added to the frame before, so the animation plays at the same speed. Files are processed in your browser and never uploaded.

How to use

  1. Choose a GIF file.
  2. Set the width, the colours per frame and how many frames to keep.
  3. Click Compress, compare the result with the original and check the new size.
  4. Click Download GIF.

Options explained

Width
Halving the width cuts the number of pixels to a quarter — usually the biggest saving.
Colours per frame
GIFs use up to 256 colours per frame. 64 or 32 is often enough for screen recordings and cartoons; photos may show banding.
Frames
Keeping every 2nd frame roughly halves the file. Motion becomes less smooth, but the total duration doesn’t change.

What each setting saves

Width and frame count both reduce how many pixels have to be stored. Take a 480 × 270 GIF with 90 frames:

Setting Frame size Frames Pixels stored
Original 480 × 270 90 11,664,000
Width 240 240 × 135 90 2,916,000
Width 240, keep every 2nd frame 240 × 135 45 1,458,000

That is one eighth of the pixels. The file size does not fall in exactly the same proportion, because it also depends on the picture itself.

When frames are dropped, their display time is added to the frame that is kept. Keeping every 3rd frame of a GIF with 100 ms frames gives 300 ms per kept frame, so the total length is unchanged.

Frequently asked questions

Why didn’t the file get smaller?

Some GIFs are already optimised to store only the changing part of each frame. This tool writes complete frames, so with the original width and all frames the result can be larger. Reduce the width or drop frames.

Is transparency kept?

Yes, transparent areas stay transparent.

Can I convert a GIF to MP4 instead?

Not with this tool. For very long animations a video is far smaller than any GIF.

Are my files uploaded?

No. Everything runs in your browser.

Privacy

This tool runs entirely in your browser. Your files and text are processed on your device and are never uploaded to our servers.

Related tools