Why is my GIF so big? Width, frame rate and length, measured

To make a smaller GIF, lower the Width first, then the Smoothness, then the Length. Below, what each setting did to the file size of the same clip. Nothing is uploaded.

A few seconds of video turns into a GIF of several megabytes, too big to send or to paste where you wanted it. That is normal: a GIF keeps its frames as a run of pictures, so when the whole picture moves its size is close to the size of one frame times the number of frames. This article gives what we found when we wrote the same clip at each width, frame rate and length that this site's GIF maker offers, what makes a GIF big, and what to lower first.

Why a GIF is big: frames that all change, and photos it cannot pack

The first reason is the number of frames. A GIF can record only what changed since the frame before, and the GIF maker on this site writes it that way. But in a handheld clip the whole picture moves, so nearly every pixel of every frame has to be written again, and twice the frames is close to twice the file.

The second is that a GIF packs photographic pictures badly. One GIF can use at most 256 colours, and its compression works by squeezing runs of the same colours that repeat. A frame from a photo or a video, where the colours shift gradually, does not shrink much that way. In our test, one 480px frame averaged 82KB, about 2.5 times the 33KB of the same picture saved as a JPEG at quality 80.

The third is the pixels. A frame grows with its width times its height, so halving the width leaves a quarter of the pixels in every frame. The wider you make the GIF, the heavier every one of its frames becomes.

Measured: what width, frame rate and length do to the size

How we measured: with the same encoding as this site's GIF maker (one palette of 255 colours and a transparent one for the whole clip, unchanged pixels left out), we cut 16:9 frames out of a 1024×684px photo and wrote them as GIFs. Video could not be opened where we measured, so both clips were made from that photo: a "moving photo", where the frame pans slowly across it, and a "still background", where the photo stays put and only a small square moves. We changed only the three things the tool lets you choose: the width, the smoothness (frames per second) and the length (8 November 2026, 1KB = 1,024 bytes).

The width mattered most. The moving photo at 10fps and 3 seconds (30 frames) came to 732KB at 240px, 1.18MB at 320px, 2.39MB at 480px and 3.93MB at 640px. 640px was about 5.5 times 240px.

The smoothness and the length followed the number of frames. At 480px and 3 seconds, 5fps (15 frames) came to 1.19MB, 10fps (30 frames) to 2.39MB and 15fps (45 frames) to 3.56MB. Going from 3 seconds to 6 took 2.39MB to 4.80MB, about double.

A still background made it far smaller. At 480px, 10fps and 3 seconds it came to 121KB, about a twentieth of the moving photo, because the GIF maker on this site leaves out pixels that did not change since the frame before. The same frames written whole came to 2.59MB.

That 121KB is for a source where not one pixel flickers. In a real video, compression makes even the parts that look still shift a little. As a model of that, we changed each pixel's brightness in every frame by up to ±1 to ±8 on the 0–255 scale, and the same settings came to 1.41MB (±1) to 2.73MB (±8). We did not measure a real video, so for a screen recording, go by the size the tool shows once the GIF is made.

GIF size with one setting changed at a time (measured)

Baseline: 480px wide, 10fps, 3 seconds (30 frames). Each row changes one of those. The still background is a source where no pixel flickers; a real video comes out larger.

SettingFramesMoving photoStill background
Width 240px30732KB41KB
Width 320px301.18MB64KB
Width 480px (baseline)302.39MB121KB
Width 640px303.93MB193KB
Smoothness 5fps151.19MB109KB
Smoothness 15fps453.56MB135KB
Length 1 sec10809KB102KB
Length 6 sec604.80MB145KB

Make it smaller in this order: width, smoothness, length

Lower the Width first. In our test, 480px to 320px took 2.39MB to 1.18MB, roughly half, and 240px took it to 732KB, about a third. A reaction GIF that is shown small in a chat looks much the same at 240px.

Then lower the Smoothness. 10fps to 5fps halves the frames and roughly halves the file. For a scene without much movement, 5fps or 8fps is often enough.

If it is still too big, shorten the Length. 3 seconds to 1 took 2.39MB to 809KB. If the movement can be sped up, setting the Playback speed to 2× in the GIF maker halves the frames taken from the same stretch of video. The number of frames the GIF will have is shown before you make it, so use that number as your guide.

The GIF maker shows the size of the GIF once it is made, before you save it. If the place you are posting to has a size limit, check it there and then.

A GIF you already have, and when not to use a GIF

The GIF maker on this site can open a GIF you already have and write it again at a smaller width or with fewer frames. It plays for as long as it did, and the screen says how much smaller the new file came out, or that it did not. Pick a target size of 256 KB, 512 KB, 1 MB, 2 MB or 5 MB and it finds a width and a frame count that fit, or shows the lightest result it could write and says it fell short. If you still have the video, making the GIF again from it avoids choosing the colours a second time, and the same sizes are offered there. If you put a GIF into the image compressor, it is treated as a still picture of its first frame.

For a long clip, or one whose colours matter, sending the video as a video is smaller and keeps the colours. A GIF holds at most 256 colours, so smooth shades such as a sky or skin can show bands. That is the format, and it happens whichever tool makes the GIF.

What this article measured is the size of the file. Whether a GIF plays choppily on a phone or in a browser was not measured.

The GIF maker on this site opens the video and writes the GIF inside your browser; the video is never sent to a server.

Frequently asked questions

Why is my GIF so large?

Because a GIF keeps its frames as a run of pictures, and it is poor at packing photographic ones. Written the way the GIF maker on this site writes them, one 480px frame averaged 82KB, about 2.5 times the 33KB of the same picture saved as a JPEG at quality 80. Thirty of those frames (480px, 10fps, 3 seconds) came to 2.39MB.

What makes a GIF smaller the most?

The width. In our test, going from 480px to 320px roughly halved the file, and 240px cut it to about a third. Next is the smoothness (frames per second): 10fps to 5fps roughly halves it. A shorter length shrinks it in proportion.

Does halving the frame rate halve the file size?

Very nearly. At 480px and 3 seconds, 10fps (30 frames) came to 2.39MB and 5fps (15 frames) to 1.19MB. When the whole picture moves, nearly every pixel of every frame is written, so the size follows the number of frames.

Is a screen recording with a still background smaller as a GIF?

Yes. The GIF maker on this site leaves out pixels that did not change since the frame before. A GIF of a still photo with only a small square moving came to 121KB at 480px, 10fps and 3 seconds, about a twentieth of one where the whole picture moved (2.39MB). A real video will not get that far, because compression makes even the still parts flicker slightly: our model of that flicker came to 1.41MB to 2.73MB.

Can I make a GIF I already have smaller?

Yes, in the GIF maker: drop one animated GIF into it, pick a smaller width or keep one frame in two, three or four, and it is written again. Or pick a target size of 256 KB, 512 KB, 1 MB, 2 MB or 5 MB and it finds the width and frame count for you. The image compressor is the wrong door, because it treats a GIF as a still picture of its first frame. If you still have the video, making the GIF again from it with a smaller width or a lower smoothness avoids choosing the colours twice, and the same target sizes are there for a video.

Can I reduce a GIF's file size without losing quality?

Only by giving something up, because the size comes from the pixels and the frames. A smaller width keeps the motion and costs detail; a lower frame rate keeps the detail and makes the motion choppier; a shorter clip keeps both and shows less. The colours are limited to 256 whichever you choose, which is the format, not the tool.

Is a large GIF the reason it plays choppily?

We did not measure playback, so we cannot say. This article measured file size only.

Is my video uploaded when I make a GIF?

No. The GIF maker opens the video and writes the GIF inside your browser, on your own device; the video is never sent to a server. There is no account to create.

The tool at the top of this page is thevideo to GIF maker; it runs in the browser, and nothing is uploaded.

All image troubleshooting guides