About this tool
Reduce GIF file size by tuning its color palette and dithering.
GIF Palette Optimizer rebuilds a GIF or a video clip with a smaller colour palette using FFmpeg's two-pass palettegen/paletteuse chain, which is what makes a GIF shrink without turning muddy. You choose 64, 128 or 256 colours; the tool analyses the whole clip first to build one optimal palette for it, then re-encodes at 15 frames per second, scaled to 960 pixels wide with Lanczos resampling and Sierra-2-4A dithering. FFmpeg runs as WebAssembly inside your browser, so the file is written to an in-memory filesystem and the finished GIF downloads straight back to you.
Open GIF Palette Optimizer on AltFTool — it loads instantly in your browser.
Choose your animation with the Source file picker, which accepts a GIF or any video file (image/gif, video/*).
Set Palette to 64 colors, 128 colors or 256 colors — 256 is the GIF format's own ceiling — then press Process locally.
FFmpeg loads as WebAssembly and runs palettegen then paletteuse at 15 fps, scaled to 960 px wide with Sierra-2-4A dithering, and downloads altftool-gif-palette-optimizer.gif without your file leaving the browser.
The palette is generated from the whole clip before re-encoding, so colours stay consistent across frames instead of shifting frame to frame.
Sierra-2-4A error diffusion spreads quantisation error across neighbouring pixels, keeping gradients smooth at 64 colours rather than banding.
The FFmpeg build loads into the page and processes your file locally, so unreleased footage or internal screen recordings are never uploaded.
It depends on the source, but the reduction comes from three fixed changes as well as the palette: output is capped at 15 fps and 960 pixels wide, and halving the palette from 256 to 128 colours cuts one bit per pixel before compression. Flat, graphic footage shrinks most; grainy camera video least.
Because the GIF format itself is limited to a 256-entry palette per image — that is the format's ceiling, not the tool's. The 64 and 128 options exist to go below it, which is where the real file-size savings are.
Yes. It accepts video as well as GIF input, and the output is always a GIF at 15 fps and 960 pixels wide. Trim the clip before uploading, since GIF has no inter-frame compression and long clips stay large whatever the palette.
No. FFmpeg is compiled to WebAssembly and runs in your browser after you click the button; your file is written to its in-memory filesystem, processed there, and the result is handed back as a download.