GIF compressor
Decode every GIF frame, requantise the palette and resize, then re-encode with a GIF89a writer — with before/after byte counts.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
GIFs are decoded and re-encoded locally in your browser and never uploaded.
Pick a GIF file — the frame count, size and loop count show up right away.
Compression details
Pick a GIF and the before/after size and file size show up here.
What this tool does
- Chat apps say the file is too large: drop the palette from 256 to 64 colours and the max edge to 240 and the file often shrinks to a third.
- Slimming web animation: check the compression ratio first so you do not crush the palette in one go and get visible banding.
- Normalising a batch: push a pile of differently sized GIFs through the same max edge so lists look tidy.
- Sanity check first: the frame count, size, loop count and duration appear as soon as you pick the file, so you can confirm it is the right one.
Example
Input
A 64 × 64 GIF with 4 frames (100 ms each, infinite loop), 16 colours, max edge 32
Output
Output size: 32 × 32 Output frames: 4 Output file size: 1188 B (source 9379 B, 87.3% smaller)
This is the real result of the pure logic: each frame is area-averaged down to 32 × 32, median-cut quantised to 16 colours and re-assembled into GIF89a. The source used a 256-colour palette with no inter-frame savings, so requantising shrinks it a lot.
Frequently asked questions
Why do banding or speckles appear after compressing?
A GIF frame has a single palette. The fewer colours it holds, the more pixels snap to the same index, which shows up as banding in gradients. The default is 256 colours (unchanged), and visible savings only start below about 128 — step down gradually.
Does compressing drop frames?
No. Every frame is decoded and re-encoded, so the frame count and total duration stay the same (check the "Output frames" row). Only GIF editing can drop frames, and that is an explicit choice there.
Why is the result sometimes larger?
This tool writes full-canvas frames instead of local deltas. If the source used local frames or very efficient LZW data, the new file can be bigger; the size change row then shows a negative percentage. Use a higher colour count, or shrink the dimensions with the proportional GIF scale tool.
Does it handle animated WebP or APNG?
No. Only GIF87a / GIF89a byte streams are accepted; anything else reports that the file is not a parseable GIF, because the parser really walks the GIF block structure rather than pretending.
Keywords:compress gifgif optimizer