GIF Compressor
Shrink an animated GIF by reducing its frame rate, dimensions and colour count, with the before and after size shown. No upload.
An animated .gif up to 150 MB. It is decoded and re-encoded on your device.
More image tools: all image tools. Everything runs in your browser — nothing is uploaded.
Is this tool not working?
Tell us what went wrong and we’ll fix it. The report is sent with the page you’re on (/gif-compressor/), so you don’t need to name the tool.
About the GIF Compressor
GIF Compressor re-encodes an animated GIF at a smaller size, and it tells you exactly what changed. Three controls do the work: the longest side reduces pixel dimensions, the frame rate drops frames you will not miss, and the colour count limits each frame’s palette. Those are the only levers GIF gives you, because the format has no inter-frame compression to tune — a smaller GIF is always a simpler GIF. The page decodes the file with gifuct-js, composites each frame the way a player does (honouring disposal methods so transparent animations do not smear), then re-encodes with gifenc. It shows the original size, the new size and the percentage saved, so a setting that makes the file bigger is visible immediately rather than hidden behind a vague “optimised” label. Everything happens in your browser: no upload, no account, no watermark, no daily cap. Very large GIFs are refused with the reason and a suggested next step instead of crashing the tab. Disposal methods deserve a mention, because they are the part that most naive GIF tools get wrong. A GIF frame can replace the canvas, restore what was underneath, or leave the previous image in place; gifuct-js applies those instructions in order so what you see during compression is what a player shows. The re-encode then writes a fresh GIF with LZW-compressed frames and a palette chosen per frame at the colour count you picked. Lowering the frame rate re-times the animation by dropping frames and giving the ones that remain one shared, longer delay, so the overall duration stays close to the original even though fewer pictures are stored. Halving the longest side cuts the pixel count to a quarter, which is usually the biggest single saving. Because GIF is a palette format, there is no stream-copy option: every frame has to be read, drawn and written again. That also means experimenting is safe — each run starts from your original file, so a bad setting does not stack quality loss on the previous attempt. Preview the result before downloading, and trust the numbers over the word “optimised”: a GIF that was already carefully tuned can grow when re-encoded with a different palette. Do not use this tool if the GIF must keep transparency — the encoder here writes opaque frames and flattens onto white, which avoids the dark fringes that one-bit GIF transparency produces — or if every original delay must be preserved exactly. It cannot add or rearrange frames; use GIF Maker for that. It also cannot make a photographic GIF look clean at 32 colours, and it is not a video compressor: use Video Compressor for an MP4 or WebM. Files above roughly 600 frames or 80 million total pixels are refused with an explanation rather than freezing the tab. Nothing is uploaded at any point: decoding, compositing and encoding all run locally on your device.
How to use it
- Drop an animated .gif onto the page. The page reads its dimensions, frame count and duration locally.
- Choose a longest side. Halving it cuts the pixel count to a quarter and is usually the biggest single saving.
- Choose a frame rate. 12 fps is smooth enough for most UI clips; 8 or 5 fps suits slow animations.
- Choose a colour count. 128 colours is visually close to 256 for flat graphics; 64 or 32 is a deliberate retro look.
- Press Compress GIF, compare the before and after sizes, preview the result and download it.
Worked example
Good to know
This tool processes everything locally with JavaScript. Nothing you paste or upload is transmitted to Hellagape or to any third party, and closing the tab clears the data. There is no daily limit and no account requirement. Results are provided for information only; for legal, financial or medical decisions, confirm the outcome with a qualified professional.
FAQ
GIF Compressor questions
What actually makes a GIF smaller?
Fewer pixels, fewer frames and fewer colours. GIF has no motion compensation and no inter-frame delta compression, so there is nothing else to optimise. Reducing the longest side from 640 to 480 removes about 44% of the pixels; dropping from 30 fps to 12 fps removes well over half the frames.
Will compressing make the GIF look bad?
It depends on the content. Flat graphics, screenshots and cartoons survive aggressive settings; photographs show banding and blockiness. The preview is the honest test — if it looks wrong, raise the colour count or the size and re-run. Each run starts from your original file, so experimenting does not stack quality loss.
Can the result be larger than the original?
Yes, and the page says so. A GIF that was already heavily optimised can grow when re-encoded with a different palette, especially at high colour counts. The before/after figures appear before you download, so you can adjust instead of guessing.
Is my GIF uploaded?
No. Decoding, compositing and re-encoding all happen in your browser with gifuct-js and gifenc. There is no server, no account and no watermark, and the original file on your disk is never modified.
Why is there a limit on frame count and size?
A browser must hold every decoded frame in memory, and a GIF with hundreds of large frames can exhaust a tab. The tool refuses files above about 600 frames or 80 million total pixels with a plain explanation, rather than freezing or silently failing.
Does it keep transparency and animation timing?
The animation is preserved and re-timed to the frame rate you choose. Transparency is flattened onto white, because the encoder path here writes opaque frames; that avoids the black fringes that 1-bit GIF transparency often produces when composited. If you need a transparent GIF, keep the original.
Keep going