Compress a GIF until it fits your size limit
Say 8 MB. It searches lossy level, palette and width until the file fits, then tells you which one it used.
No upload. No account. No upload. gifsicle 1.92 runs as WebAssembly in this tab.
How it works
- Drop a GIF in. The row shows its original size.
- Either set a ceiling in KB (8000 = 8 MB) and let the tool search, or leave the ceiling at 0 and use the manual lossy and colour controls.
- In target mode the row reports the final size and which lever got it there: lossy level, colour count, or a resize.
- Check the animation before downloading. If the target could not be reached, the row says so instead of pretending.
Limits, in plain numbers
| File types | GIF87a and GIF89a, animated or still |
|---|---|
| Size | Up to 50 MB per file, 20 files per batch |
| Target mode | Give a ceiling in KB; the page runs gifsicle until the result fits, up to about ten passes |
| Output | GIF, same frame count and timing; palette and dimensions as needed to fit |
| Network | No upload. gifsicle 1.92 runs as WebAssembly in this tab. |
Why this runs locally
The question people actually type is not “compress a GIF”, it is “get this GIF under Discord's limit” or “under 8 MB for a form”. That is a number, so the tool takes a number.
Target mode tries the gentlest lever first: lossless re-optimisation. Only if that misses does it search the lossy level, then drop the palette, then resize the canvas — and it names the lever it used so you can judge the trade.
gifsicle 1.92 runs as WebAssembly in a worker in this tab, the same engine as the command line. The animation is never posted anywhere.
Engine and licences are listed on the about page; the source archives ship with the site.
One run, measured
Fixture: animated GIF fixture. Settings: lossy 40, 128 colours. Measured 2026-11-30 (Asia/Shanghai) in a headless Chromium on the build machine.
| Input | 110.9 KB (113545 bytes) |
|---|---|
| Output | 110.6 KB (113243 bytes) |
| Change | 0% smaller |
| Time | 1.54 s |
This is one run of one fixture, published so you can check it — not a promise for your file. A different photo, video, or document will land somewhere else, and a smaller file is not automatically the better result.
Questions people actually ask
- How do I get a GIF under 8 MB?
- Put 8000 in the size ceiling and compress. The tool re-encodes until the file fits, usually by searching the lossy level first; if that is not enough it reduces colours and then the canvas, and the result row names which one it used.
- Does this replace your GIF compressor on the home page?
- No. The home page is the general GIF compressor with the full manual controls. This module is the size-target tool: you give it a number, it searches for the settings that fit.
- What is a safe lossy level?
- 0 is lossless. 20–60 is usually invisible on screen recordings and flat art. Above 100, gradients and faces start to show blocks; the preview is the judge.
- Are frames or timing changed?
- No frames are dropped and delays are preserved. Palette and dimensions change only when the size ceiling requires it, and the result says so.
- Why did my GIF get bigger?
- An animation that was already optimised has little left to win, and re-encoding can add overhead. When the result is not smaller, the tool keeps the original and says so.