How-to
How to Reduce GIF File Size


To make a GIF smaller, change four things, in this order: shorten the clip, lower the width, lower the frame rate, then reduce the number of colours. A GIF stores every frame as a full picture, so anything that gives it fewer frames, or fewer pixels in each frame, gives you a smaller file.
In our tests, three presets of our GIF compressor made four 3 second test GIFs smaller by 19 to 25%, 32 to 36% and 73 to 82%. The pictures above are the same clip before and after the strongest preset.
Why GIF files get big
GIF has no video compression between frames. Every frame is its own picture, limited to 256 colours. So the size of a GIF grows with three things: how many frames it has, how many pixels are in each frame, and how busy the picture is. A long, wide, fast clip of moving water or confetti is about the hardest case there is.
The four settings, in order
1. Cut the length
Fewer seconds means fewer frames to store. Often the moment people care about is one or two seconds, and the rest of the clip only adds weight. Trim first, because it costs no picture quality at all.
2. Lower the width
The height follows the width, so a GIF that is half as wide has about a quarter of the pixels in every frame. A width of 480 px is a common choice for a web page or a chat message, and 320 px is fine for something small.
3. Lower the frame rate
Dropping from 15 frames per second to 10 or 8 removes a third to a half of the frames. The cost is choppier motion, which is easy to accept for a reaction or a simple loop and harder for fast action.
4. Reduce the colours
Each frame can use up to 256 colours. Going to 128 or 64 shrinks the file, and flat artwork usually copes well. Photos and smooth gradients are different: they start to show visible steps, called banding.
What we measured
We took four 3 second clips (480×270, 36 frames each) and compressed them with the three presets in our GIF compressor. Here is what each preset changes:
| Preset | Width | Frames | Colours | Smaller by |
|---|---|---|---|---|
| Light | up to 640 px (our clips stayed at 480) | all kept | 128 | 19 to 25% |
| Balanced | 480 px | 10 per second | 128 | 32 to 36% |
| Small | 320 px | 8 per second | 64 | 73 to 82% |
For the latte clip, the 1.8 MB original became 1.4 MB with Light, 1.2 MB with Balanced and 468 KB with Small. The confetti clip is much busier: 3.5 MB became 2.8 MB, 2.3 MB and 760 KB.
Two honest notes on these numbers. First, the presets change several settings together, so we cannot say how much any single setting saved. Second, this is one set of four clips, not a promise: your GIF may shrink more or less.
What you give up
Small is the preset that saves the most, and it is also the one that shows. In our ink clip, the smooth blue gradient shows clear colour steps, and in the fireworks clip the smoke does too. If your GIF is mostly smooth gradients or photos, try Balanced first and compare the result with the original before you download.
When a GIF stays big
Very busy footage stays large even with strong settings, as the confetti clip shows. A GIF that was already optimised may not get smaller at all. In that case, a shorter clip is the setting that helps most. And if the place you are posting to accepts video, an MP4 or WebM is usually much smaller than a GIF of the same clip.
Set it right from the start
If you are making the GIF yourself, you can avoid the problem. In our video to GIF maker you choose the start and length, a width of 320, 480 or 640 px and a frame rate of 8 to 15 before the GIF is built, so a 3 second clip at 480 px and 10 frames per second is a good place to begin.