GIF Compressor
Make an animated GIF smaller for chat, email, docs or a website: pick a compression level, optionally shrink it or drop frames, and download the lighter GIF.
How to compress a GIF
- Choose the compression level: Light keeps 256 colours, Medium (recommended) 128 and Strong 64. Optionally lower the size or keep only every 2nd or 3rd frame.
- Choose or drop your GIF. It is compressed on your device straight away.
- Compare the before and after size, download the result, or change the settings and press Compress GIF again.
How the GIF compressor works
Your GIF is decoded frame by frame with the open-source omggif library and rebuilt in your browser. Three things make it smaller:
- Only what changes is redrawn. In most animations large parts of the picture stay still. Each new frame only stores the rectangle that changed, and pixels that did not change inside it are written as transparent, which compresses extremely well. Medium and Strong also ignore tiny colour flicker between frames.
- Smaller palettes. Each frame gets its own optimised palette (made with the open-source gifenc quantizer). Fewer colours means shorter codes for the GIF's LZW compression.
- Optional resize and frame drop. These cut the amount of data the most, at a visible cost. Dropped frames are not lost time: their duration is added to the frame before, so the animation still lasts as long as the original.
The loop setting and frame timing are kept. GIFs with transparent areas keep their transparency; for those, every frame is stored in full, so savings come mainly from the palette, size and frame settings.
How much does resizing save?
The data in a GIF grows with the number of pixels in each frame. For a 480×270 GIF:
| Size setting | Frame size | Pixels per frame | Pixels vs original |
|---|---|---|---|
| 100 % | 480×270 | 129,600 | 100 % |
| 75 % | 360×202 | 72,720 | 56 % |
| 50 % | 240×135 | 32,400 | 25 % |
Scaling to 50 % keeps a quarter of the pixels, so the file usually shrinks far more than with any colour setting. If you need a much smaller file, try size first, then frames, then a stronger level.
When a GIF won't get smaller
Some GIFs are already optimised by the tool that made them (for example with frame-difference encoding and small palettes). Then re-compressing at Light may not help, and the tool tells you when the result isn't smaller. For short clips you want to share on the web, a video is often 5–10× lighter than any GIF: try GIF to MP4. To make a GIF from a clip, use Video to GIF.
Frequently asked questions
Is my GIF uploaded to a server?
No. Decoding, colour reduction and encoding all happen in your browser, so the GIF never leaves your device.
Does compressing a GIF lower its quality?
Light keeps up to 256 colours per frame and only redraws changed pixels, so it usually looks the same. Medium and Strong use fewer colours and ignore tiny changes, which can add slight banding or grain. Resizing and dropping frames are visible but save the most.
Will the animation keep its speed and loop?
Yes. Frame delays and the loop count are copied. When you drop frames, their time is added to the frames that remain, so the total length stays the same.
Why is my compressed GIF not smaller?
The original was probably already optimised. Try the Strong level, a smaller size or keeping every 2nd frame. For the biggest savings, convert it to an MP4 video.
Does it keep transparent backgrounds?
Yes. Transparent pixels stay transparent. GIF transparency is on or off per pixel, so soft semi-transparent edges become either fully visible or fully clear, as in any GIF.