Compress GIF

Compress GIF images in your browser — smaller files at the quality you choose, nothing uploaded. Free, unlimited, and private by design.

How to compress an image

  1. Drop or pick a GIF file — or paste it with Ctrl/⌘+V.
  2. Choose lossy for the smallest file or lossless to keep every pixel, then tune the quality.
  3. Compress, preview the before/after, and download — all on your device.

Why compress?

GIF is a 256-color format best known for simple animations, but heavy and low-fidelity for photos. Compressing your GIF files makes pages load faster, lifts Core Web Vitals and cuts bandwidth — without a visible drop in quality when done right. Both modes re-quantize the palette while keeping every frame, delay and loop of the animation.

OptImg compresses GIF locally with the same Rust codecs used server-side elsewhere, so you get the savings without the upload wait, the queue, or handing your images to a third party. If a file is already well optimized, we tell you and keep your original instead of handing back something larger.

Frequently asked questions

Are my GIF images uploaded to a server?
No. GIF compression runs entirely in your browser with WebAssembly — your image never leaves your device, and there are no size or file-count limits.
What's the difference between lossy and lossless?
Lossy gives the smallest files by discarding detail you're unlikely to notice; lossless only removes redundancy, keeping the image identical. Both modes re-quantize the palette while keeping every frame, delay and loop of the animation.
Does it keep the animation?
Yes — every frame, delay and loop of an animated GIF is preserved. Only the palette is re-quantized to shrink the file.