How the GIF gets smaller
An animated GIF is a stack of pictures, each limited to 256 colours and compressed with LZW. Toolvity decodes every frame, rebuilds it, and re-encodes it with four techniques you can combine:
- Fewer colours. Each frame gets its own optimised palette. 128 colours is hard to tell from 256 for most clips; 64 or fewer suits cartoons and screen recordings.
- Frame differencing. Areas that didn’t change since they were last drawn are marked transparent and only the changed rectangle is stored.
- Lossy. Treats pixels that changed only slightly as unchanged — the setting that saves the most on video-like GIFs with grain or noise.
- Fewer frames and smaller size. Dropping every second frame roughly halves the work; scaling to 50% cuts the pixel count by three quarters.
Choosing a level
Light keeps every colour and only skips pixels that barely change — a safe choice for logos and UI animations. Balanced uses 128 colours with moderate differencing and often halves a clip from a phone or video. Strong goes down to 64 colours with aggressive differencing for the smallest file that still reads well.
Some GIFs are already tightly packed by the tool that made them. If re-encoding can’t beat the original, Toolvity tells you and gives you the original back rather than a bigger file. Scaling down or dropping frames usually helps in that case — or convert it to video with GIF to MP4, which is far smaller for long clips.
Private, and quick on big files
Your GIF never leaves your device. Decoding and re-encoding run in a background thread in your browser, so the page stays responsive while the preview builds. Very large GIFs show a Preview button instead of rebuilding on every change.