GIF Compressor

Reduce GIF file size with lossy compression, color reduction, resize, and frame skip. Browser-only, no upload.

Drag & drop your PDF here

or browse files

Single file · PDF supported

GIF processing runs entirely in your browser via WebAssembly. Files never leave your device.

Why GIFs get so large

GIF files have two built-in size constraints: they are limited to 256 colors per frame, and they use LZW compression which is lossless but not efficient for photographic content. A 30-frame, 640x480 GIF at 10fps can easily reach 10-20MB. Twitter's GIF limit is 15MB; Slack's is 10MB; WhatsApp's is 16MB. Many GIFs fail to upload simply because they were exported at full quality without any post-processing.

Lossy compression explained

Standard GIF encoding is lossless. Lossy GIF compression (via gifsicle's --lossy flag) introduces controlled dithering artifacts that improve LZW compressibility. A lossy value of 80 typically reduces file size by 30-40% with barely visible quality loss. A value of 160 can cut size by 60% at the cost of noticeable color banding. Start at 80 and increase until the output looks acceptable.

Color palette reduction

GIFs support 2 to 256 colors per frame. Many GIFs use far fewer than 256 distinct colors, so reducing the palette from 256 to 128 or 64 often produces no visible change but saves 10-20% on file size. For simple graphics like logos or text animations, 32 or 16 colors may be sufficient.

Frame skip and resize

Dropping every other frame halves the animation's data at the cost of smoother motion. This works well for GIFs where each frame is similar to the next (slow motion, panning shots). Resize to 75% reduces pixel count by ~44%, which alone can cut file size in half. Combine resize with lossy compression for the biggest reduction.

Platform limits for reference

Twitter accepts GIFs up to 15MB (converted to video internally). Slack shows animated GIFs up to 10MB. WhatsApp limits GIF-as-video to 16MB. Discord limits file uploads to 8MB on free accounts. Optimize to the smallest target platform in your use case.

How this tool works

This tool uses gifsicle-wasm-browser, a WebAssembly port of gifsicle 1.92, the standard command-line GIF optimizer. Gifsicle was originally written by Eddie Kohler and is maintained as open-source software. The WASM build runs entirely in your browser — no network calls, no server processing.

Privacy

Your GIF files never leave your device. The WebAssembly module downloads once to your browser cache and runs locally for every subsequent compression.