How to Reduce GIF File Size — 5 Levers, Ranked
The same GIF can weigh 300 KB or 12 MB depending on four settings. Here is the order that hurts least.
Why GIFs grow so fast
GIF is an old format with an old idea of efficiency: every frame is stored as a full image, indexed against a palette of at most 256 colours. A 10-second GIF at 25 fps contains 250 full images. Even at 600 px wide, that is tens of megabytes before any cleverness happens.
So when you need a smaller GIF, you are always trading one of four things. Knowing their order of impact saves a lot of trial and error.
Lever 1: frames
Dropping every second frame halves the file size and, for most screen recordings and memes, is nearly invisible — it simply turns 24 fps into 12 fps, which is still smoother than a flipbook. Dropping two out of three frames (keeping every third) turns 24 fps into 8 fps; motion gets choppy, but for a slideshow-style clip it is perfectly acceptable.
This is the single most effective change, and it is the first thing to try.
Lever 2: dimensions
Scaling to 75 % of the original width and height leaves 0.75 × 0.75 = 56 % of the pixels, so the file shrinks by roughly 44 %. Scaling to 50 % leaves 25 % of the pixels — a three quarters reduction. For a GIF that will be viewed on a phone or pasted into a chat, 480 px wide is generous; 320 px is still readable for interface clips.
Lever 3: colours
A GIF frame's palette can hold up to 256 colours. Reducing to 128 or 64 colours cuts size noticeably for colourful content and hardly at all for simple graphics. The important trick is that flat-colour material (UI, logos, charts, text) can often go down to 32 colours with no visible difference, while photographs need 128 or more to avoid banding. If your GIF is a screen recording of an app, try 64 first.
Lever 4: trimming
The cheapest byte is the one you do not encode. Cut the first and last half second — most GIFs contain dead time at both ends. If the loop contains a long pause, shortening it improves both size and rhythm.
What does not help much
- Reducing the frame delay does nothing for size; it changes playback speed only.
- Re-saving a GIF as a GIF through an image editor usually does nothing unless you also change one of the four levers above.
- Converting a GIF to MP4 and back is a pointless round trip that loses quality.
When to stop using GIF altogether
If a clip needs to be longer than about 10 seconds, wider than 640 px, or contain sound, the honest answer is that GIF is the wrong format. Modern chat apps, GitHub, Slack and most social platforms play MP4 or WebM inline. Keep GIF for the places that genuinely require it: email signatures, old forums, documentation, and anywhere a play button is unacceptable.
Compress a GIF without uploading it
The GIF Compressor here decodes your GIF in the browser, applies the scale, colour and frame-skip settings you choose, and re-encodes it in place. Because the file never leaves your machine, it works on private material — internal demos, unreleased designs — and it shows you the before and after size immediately, so you can tune the four levers and see the effect in seconds.