Image · 7 min read
Why Is My GIF So Big? How to Keep a GIF Small Without Ruining It
By the site owner · Published
A three-second clip from a phone is a few megabytes as a video. The same three seconds as a GIF can easily be ten times larger, and chat apps, forums and e-mail start refusing or re-compressing it. That isn't bad luck: GIF is a format from 1987 that stores every frame as a picture with at most 256 colours and compresses it with a simple scheme designed for flat graphics, not for photos or video.
This guide explains where a GIF's size actually comes from, which settings make the biggest difference and in which order to change them, and when a different format is simply the better answer. It complements the step-by-step guide on making a GIF from photos or a video, and uses the Toolula GIF tools, which build and shrink the animation in your browser without uploading it.
Where the bytes come from
A GIF stores, for each frame, one palette index per pixel. Before compression that is up to one byte per pixel and frame. A 480 × 270 frame has about 130,000 pixels; five seconds at 15 frames per second are 75 frames, or nearly 10 million pixels — up to about 10 MB before compression. GIF's LZW compression then shrinks long runs of identical values well and noisy, varied pixels badly.
Two consequences follow. First, the size grows with width × height × number of frames, so the pixel size and the frame count matter far more than anything else. Second, anything that makes neighbouring pixels identical — fewer colours, no dither noise, unchanged areas between frames — helps the compression, and anything that adds fine noise works against it. Film grain, camera shake, moving leaves and low-light noise are the hardest material for a GIF.
Step 1: start with a short, steady clip
The cheapest frame is the one you don't keep. Cut the clip down to the moment that matters before converting: Video to GIF lets you choose the range (up to 60 seconds) and starts with the first ten seconds of a clip, and Edit GIF can set the first and last frame of an existing GIF and leave single frames out. Two seconds that loop well usually work better than eight that don't.
Steady footage matters as much as length. Toolula's GIF writers compare each frame with what is already on screen and only store the pixels that changed; the rest are written as transparent and cost almost nothing. A screen recording or a tripod shot where only one thing moves therefore compresses far better than a handheld clip in which every pixel shifts slightly in every frame.
Step 2: smaller frames
Halving the width quarters the pixels per frame, and with them roughly the data. Most GIFs are watched in a chat bubble or inside a page column, where 320 to 480 px wide is plenty. Video to GIF offers widths from 320 to 800 px, the GIF Maker frame sizes of 240 to 800 px on the longest side, and Compress GIF a Size slider from 10 to 100 % that shows the resulting pixel dimensions.
If only part of the picture matters, crop before you scale: Resize & crop GIF crops every frame at once, freely or to 1:1, 4:3, 16:9 or 9:16. Cropping removes pixels without making the important part smaller.
Step 3: fewer frames per second
Video runs at 25 to 60 frames per second; a GIF rarely needs more than 10 to 15. Video to GIF lets you choose 8 to 25 frames per second, and Compress GIF can remove every 2nd, 3rd or 4th frame from an existing animation. Removed frames don't change the timing: the frame before them is simply shown longer, so the GIF still lasts as long as before.
Don't try to make a GIF smoother with very short delays. Browsers slow frames under 20 ms down to about 100 ms, so a GIF written at 10 ms per frame plays slower, not faster. Toolula never writes a delay under 20 ms and merges frames instead when you speed an animation up past that point.
Step 4: colours and dithering
A GIF frame can use at most 256 colours. Toolula builds one shared palette from frames spread over the whole animation, so colours don't flicker from frame to frame. Compress GIF lets you reduce the palette anywhere from 256 down to 2 colours, and starts at 128; the encoder then also uses smaller codes per pixel. Screen recordings, diagrams and cartoons often look the same at 64 colours or fewer, while photos and skin tones show banding sooner.
Dithering hides that banding by mixing palette colours in a fine pattern, which makes gradients look smoother. Toolula uses ordered dithering, a fixed pattern tied to the pixel position, so still areas dither identically in every frame instead of shimmering. The pattern still adds detail that the compression has to store, so the Dithering switch is worth turning off for flat graphics, logos, text and user interfaces — it gives a smaller file and crisper edges there. Leave it on for photos, skies and soft shadows.
Step 5: lossy compression, carefully
The Lossy slider in Compress GIF (0 to 100; it starts at 35 there) trades exact colours for longer runs of identical pixels. Two things happen as it rises. Between frames, a pixel that changed only slightly is kept as it was, so fewer pixels have to be stored; within a frame, a pixel takes its left neighbour's palette colour when the two are close. Both give the compression the long runs it handles best.
Higher values show up as smearing in fine detail, small colour steps in slow fades and, in motion, traces of the previous frame where the change was subtle. Raise the slider in steps and watch the result: Compress GIF shows the new file size next to the original as you change settings, and says when the result would be larger than what you started with.
Loop, boomerang and other settings that cost or save nothing
How often a GIF loops — forever, once or three times — is a single field in the file and doesn't change its size. Boomerang (forwards, then backwards) and Play backwards are a different matter: boomerang adds the frames a second time in reverse, so it nearly doubles the frame count and the file, while a reversed GIF stays the same size.
Transparency also has a price. GIF knows only fully transparent and fully opaque pixels, and an animation with transparent pixels has to be written as full frames rather than as changed areas, because a pixel that was visible can't be made transparent again by a frame laid over it. A transparent animated sticker is therefore usually larger than the same animation on a solid background.
When GIF is the wrong format
Animated WebP stores the same animation with modern compression and many more colours, and is usually far smaller than the GIF; GIF to WebP converts one without changing frames or timing, with a quality slider for the size. It plays in all current browsers and in many apps, but not everywhere — check the platform before you switch.
For a web page, a short muted video is often the smallest option of all: a few seconds of MP4 or WebM set to play automatically, muted and in a loop is a fraction of a GIF's size at full colour. If your source is already a video, keep it as one — Trim Video cuts it down and Mute Video removes the sound. Toolula has no GIF-to-MP4 converter, so this route only works when you still have the original clip. Keep GIF for places that need it: e-mail, older chat and forum software, and documentation tools that don't embed video.
A sensible order
If a GIF is too large, change one thing at a time, in this order, and stop as soon as the size fits:
- Shorten it to the part that matters.
- Crop away what nobody needs to see, then reduce the width.
- Lower the frame rate, or remove every 2nd frame.
- Reduce the colours; switch off dithering for graphics.
- Raise Lossy step by step while watching faces, text and edges.
- If it still doesn't fit, convert to WebP or keep the clip as a video.
Frequently asked questions
Why is a GIF so much larger than the video it came from?
A video codec stores mostly the changes between frames with modern compression; a GIF stores every frame as a 256-colour picture with LZW, a scheme designed for flat graphics. Photo-like, moving content is what GIF handles worst.
Which setting makes a GIF smaller fastest?
The pixel size and the number of frames: half the width is about a quarter of the data, and half the frame rate about half. Colours, dithering and lossy compression come after that.
Does the loop setting affect the file size?
No. Loop forever, once or three times is one value in the file. Boomerang does: it nearly doubles the number of frames.
Is WebP always smaller than GIF?
For photos and video it is usually much smaller. For a tiny flat graphic with a few colours the difference can be small, and some apps still don't accept animated WebP, so check where it will be posted.
Are my files uploaded?
No. Video to GIF, the GIF Maker and the GIF editors decode, build and save the animation inside your browser tab.
How this guide is kept current: it is checked against the official sources it cites and against the Toolula tools it describes, and revised when a rule, deadline or tool changes. The date above shows the last revision.