How to make a GIF file smaller
GIF is a format from 1987 and it shows. Understanding the two or three things that actually drive its size makes it easy to get a shareable file without wrecking the animation.
Why GIFs get heavy
A GIF is a sequence of still images, each limited to 256 colours, with only light compression between them. Unlike a video codec it cannot describe motion — it can skip parts of a frame that are identical to the one before, but it never predicts movement. So file size tracks three things almost directly: how many pixels each frame has, how many frames there are, and how much of the picture changes between them.
1. Reduce the dimensions
This is the biggest lever, because pixel count scales with the square of the size. Going from 800 pixels wide to 400 leaves you with a quarter of the pixels per frame. For a GIF viewed inline in a chat or a forum post, 320–480 pixels wide is usually indistinguishable from something twice the size — and a fraction of the weight.
2. Cut the length
Every second you remove removes its whole share of the file. Be ruthless about the beginning and the end: most clips have a moment of dead air at each edge that adds nothing. Two to four seconds is the natural length for a GIF, and a tight loop reads as intentional rather than truncated.
3. Lower the frame rate
Halving the frame rate roughly halves the frame count. 10–12fps looks perfectly natural for most subjects, and 8fps gives a deliberate stop-motion character. Only fast camera movement or fast action really needs 20fps or more. Because frames are sampled evenly, lowering the rate does not speed the animation up.
4. Keep backgrounds still
GIF compresses runs of identical pixels well, and unchanged regions between consecutive frames cost far less than changed ones. A drawing with a flat, static background and one moving character compresses dramatically better than the same character over noisy video footage or a gradient. When drawing, put the background on its own layer and leave it alone.
5. Use fewer colours
The 256-colour palette is a ceiling, not a target. Flat colour and hard edges — exactly what a paint program produces naturally — compress far better than photographic gradients, and they look sharper at small sizes too. If you are converting footage, expect gradients and film grain to be the expensive parts.
6. Hold frames instead of repeating drawings
When a pose should linger, set a hold on that frame rather than duplicating the drawing several times. The exporter writes a longer delay on one frame instead of writing near-identical frames over and over.
When to give up on GIF
If you need more than a few seconds of photographic footage, GIF is the wrong container — an MP4 of the same clip is routinely ten times smaller and looks better. The studio exports MP4 (or WebM) as well, so use it wherever the destination accepts video. Keep GIF for short loops, drawings and anywhere autoplay-anywhere matters more than quality.
Related reading: drawing a GIF frame by frame and converting a video to a GIF.