🔒 100% private — runs in your browser, nothing is uploaded

GIF Compressor

Shrink an animated GIF by dropping frames, scaling it down and cutting colours — then compare the size before and after.

A GIF’s weight comes from three places, and this tool attacks each one openly. Pixels: halving width and height leaves a quarter as many, and file size falls roughly in proportion. Frames: an animation recorded at 30 frames a second rarely needs all of them — keeping every second frame and doubling each kept frame’s delay (100 ms becomes 200 ms, so the clip still lasts exactly as long) removes half the heaviest data while motion stays recognisable. Colours: GIF caps a frame at 256 colours, and asking the encoder’s quantiser for 128, 64 or 32 forces a tighter palette that compresses harder. The three combine: 50% size, every 2nd frame and 128 colours typically lands a screen recording at a small fraction of its starting weight — the page always shows you the honest before-and-after numbers rather than a promised percentage.

Open a GIF, choose how hard to squeeze it, then press Compress.

Limits: GIFs up to 30 MB, at most 200 frames, at most 4,194,304 pixels per frame (for example 2048 × 2048) — a file outside those limits gets a clear message here instead of a frozen page. The file is decoded and re-encoded in this browser on your device; it is never uploaded.

Quick answers

How can I make a GIF file smaller?

Cut pixels, frames or colours — ideally all three. Halving the dimensions quarters the pixel count, keeping every 2nd frame halves the frame count (delays double, so duration is preserved), and a smaller colour palette compresses harder.

This compressor decodes the GIF with omggif and re-encodes it with gif.js, entirely in your browser, and reports the real before-and-after sizes — an already-optimised GIF may not shrink at mild settings.

Does compressing a GIF change its duration?

Not here. Dropped frames give their display time to the frame before them, so a clip that kept every 2nd frame still plays for exactly as long — just less smoothly.

Frame delays in GIF are stored per frame in hundredths of a second, which makes the hand-over exact for typical delays.

How to use

  1. Open the GIF — the page reports its real size, dimensions and frame count before you change anything.
  2. Pick a scale: 50% size quarters the pixel count, which is usually the single biggest saving.
  3. Thin the frames: keeping every 2nd frame halves the frame count, and the kept frames automatically inherit the dropped frames’ time so the total duration stays the same.
  4. Optionally cut the colour palette, then press Compress and compare the new size against the original.

About this tool

The mechanics are a full decode and re-encode, in your browser. The open-source omggif decoder (MIT) unpacks every frame of the original — including the partial-frame updates and disposal rules real GIFs use to save space — into full pictures; then gif.js (MIT) re-encodes the frames you kept. Two limits follow honestly from that. First, re-encoding cannot beat the original encoder’s tricks on every file: an already well-optimised GIF at original settings may come back the same size or slightly larger, and the page will tell you “no smaller this time” instead of inventing a saving. Second, the colour choices drive the quantiser’s quality setting, so “up to 128 colours” is a target the encoder aims at, not a counted guarantee. Your file is never uploaded.

Frequently asked questions

Which setting shrinks a GIF the most?

Scaling, almost always. File size tracks pixel count, so 50% width and height means roughly a quarter of the data before anything else happens. Frame thinning is next (keeping every 2nd frame removes about half), and colour reduction helps most on photographic content with many similar shades. The settings multiply together.

Does dropping frames change how long the GIF plays?

No — that is the detail this tool is careful about. When a frame is dropped, its display time is added to the frame before it, so keeping every 2nd frame doubles each kept frame’s delay and the total duration is unchanged. Motion looks less smooth, but nothing plays faster or slower.

Why did my compressed GIF come out bigger?

It happens with GIFs that were already aggressively optimised: professional encoders store only the changed rectangle of each frame and use hand-tuned palettes, tricks a general re-encode does not fully reproduce. At original size, all frames and 256 colours, this tool can land slightly above the original. Adding any real reduction — smaller size, fewer frames or fewer colours — usually tips it back under.

What do the colour options actually do?

They set how hard the encoder’s quantiser works to fit your frames into a smaller palette (gif.js exposes this as its quality setting — 10 for the 256-colour target down to 30 for 32 colours). Fewer colours means the LZW compression finds longer repeats, especially in flat areas. Photographs lose subtle shading first; cartoons and screen captures often lose nothing visible at 128.

📦 Embed this tool on your site

<iframe src="https://verystep.com/embed/gif-compressor/" title="GIF Compressor" width="100%" height="520" loading="lazy" style="border:0"></iframe>

Free to use. The embed shows a small "Powered by Verystep" link.

First time embedding? Read the step-by-step guide →

More free tools