GIF Optimizer
Shrink animated GIFs right in your browser. Reduce the colour palette and scale the frames to cut file size dramatically, using the same palettegen/paletteuse pipeline the pros use — no upload, no watermark, no sign-up.
How to use it
- 1Add your GIF
Drop a .gif file onto the drop zone, or click to choose one from your device.
- 2Pick colours and scale
Choose a maximum colour count (fewer colours = smaller file) and an output scale. 128 colours at 100% is a good starting point.
- 3Optimize
Click “Optimize GIF”. The optimizer builds a palette and re-encodes your GIF, showing the before-and-after size.
- 4Download
Preview the result and download it as optimized.gif. Your original file is untouched.
Why GIFs get so big — and how this helps
GIFs store every frame with a palette of up to 256 colours, and that adds up fast: a few seconds of animation can weigh several megabytes, which is slow to load and often too big to attach or embed.
The two biggest levers on GIF size are the number of colours and the pixel dimensions. This tool builds an optimised palette for your GIF and re-encodes it at your chosen colour count and scale, so you can trade a little visual fidelity for a much smaller file.
Runs on your device
Optimising happens entirely in your browser using a single-threaded build of ffmpeg compiled to WebAssembly. Your GIF is never uploaded — it stays on your machine the whole time.
The converter core is about 30 MB and loads once per session, so the first optimisation takes a little longer while it downloads; after that it is fast.
Frequently asked questions
Are my GIFs uploaded to a server?
No. Everything runs in your browser with ffmpeg compiled to WebAssembly. Your GIF never leaves your device — you can even disconnect from the internet once the optimizer has loaded.
How much smaller will my GIF get?
It depends on the source and your settings. Dropping from 256 to 64 colours and scaling to 75% can easily halve the size or more, while a GIF that is already lean may shrink very little. The tool shows the exact before-and-after size.
Will the animation still play?
Yes. The GIF is re-encoded as a looping animation with all of its frames — only the palette and, optionally, the dimensions change.
Why does the first optimisation take a while?
The ffmpeg core is about 30 MB and downloads once per session. After it has loaded, subsequent optimisations are quick.
Related tools
Video to GIF
Turn a video clip into an animated GIF right in your browser. Trim it, set the size and frame rate — no upload, no sign-up, your video never leaves your device.
Compress Image
Compress JPG, PNG and WebP images in your browser. See the before/after size, set the quality, and download — no upload, no limits, files stay on your device.