EN · Languages : English

Why a GIF is so large, and how to make it lighter.

Your files never leave your device.Never stored · GPS removed · No cookies
Checked on 9 November 20266 min readGIF
In brief
  • A GIF is a series of images, limited to 256 colours per image and with no motion compression like a video: it quickly gets very large.
  • What weighs the most: the number of frames, the dimensions, the duration and colour gradients.
  • You can shrink it on your device, without sending it to a server. And for a long movement, an MP4 video is often much lighter.
Shrink your GIF hereYour GIF stays on your device. No account.Compress my GIF

What is a GIF, really?

An animated GIF is a series of images that play one after another, a bit like a flipbook. The format was created in 1987, long before smartphones and online videos.

It has two quirks: each image is limited to 256 colours at most, and it has no sound. That's why it works great for a logo, a drawing or a screenshot, and much less well for a filmed scene.

Why a GIF weighs so much

A modern video (MP4) knows how to compress motion: from one frame to the next, it only keeps what changes. The GIF was designed before these techniques existed. For a filmed scene, it stores far more information for the same result.

Several things make a GIF's weight climb:

The 256 colours: what you can see

A photo or a video uses millions of colours. A GIF keeps 256 at most per image. For a logo or a screenshot, that's plenty. On a sky, skin or a gradient, you sometimes see small bands of colour.

Reducing the number of colours makes the file lighter, but it mostly shows on gradients. That's why FileDiet offers two settings, explained below.

Frames per second

The more frames per second a GIF shows, the smoother the movement, and the heavier the file. A 2-second GIF at 30 frames per second contains 60 frames. At 15 frames per second, it contains only 30, for a movement that still looks smooth to the eye.

It's one of the most effective ways to shrink a GIF: to the eye, the difference is almost invisible, but the weight drops noticeably.

Dimensions: the setting that weighs the most

The size of the image matters a lot. For a GIF made from a video, here is a rule of thumb with FileDiet: a 720 px output weighs about 2 times more than a 480 px one, and a 1080 px output about 5 times more.

To send by message or email, 480 px is often enough. Keep 720 px for a good balance, and 1080 px if you really need detail.

GIF or MP4 video: which one to choose?

At equal quality, an MP4 video is often 5 to 10 times lighter than a GIF. It can also have sound and show far more colours.

The GIF keeps the edge when you really need it: a messaging app or an email that plays the animation by itself, a forum, a site that only accepts this format.

1Shrink a GIF with FileDiet

If you already have a GIF that's too large, you can recompress it right in your browser.

  1. Open the Compress a GIF tool and drop your GIF.
  2. Choose “Light” to keep the dimensions, the colours and every frame: only the encoding is improved. Choose “Max” for a much lighter file.
  3. Compare before and after, then download the result. Your original GIF stays untouched.

With “Max”, the GIF is brought down to 480 px wide at most, its colours are simplified and, if the animation is very fast (more than 25 frames per second), one frame out of two is kept. The total duration doesn't change. The limits are 25 MB, 300 frames and 4 million pixels per frame.

2Turn a video into a GIF

Want to create a GIF from a video? The tool does it in your browser, with nothing uploaded.

  1. Open the Video to GIF tool and drop your MP4 or MOV video (50 MB and 10 seconds at most).
  2. Choose the output size: 480, 720 or 1080 px.
  3. Download your GIF.

The resulting GIF is silent, with 12 frames per second and 255 colours at most. If the file is still too large, choose 480 px, shorten the video before dropping it, or recompress the result with Compress a GIF.

Tips in brief

Frequently asked questions

Why is my GIF so large?

Because a GIF stores a lot of information for each frame and doesn't compress motion like a video does. The number of frames, the dimensions, the duration and colour gradients all push the weight up.

Is a GIF lighter than a video?

No, it's often the opposite: at equal quality, an MP4 video is frequently 5 to 10 times lighter than a GIF. The GIF is still useful when you want an animation that plays everywhere, with no play button.

Why is a GIF limited to 256 colours?

It's a rule of the format, created in 1987: each frame can only use 256 colours, against millions for a photo or a video. That's enough for a drawing, a logo or a screenshot, but you sometimes see bands on gradients.

How do I shrink a GIF without losing too much quality?

With FileDiet's “Light” setting, the dimensions, the colours and every frame are kept: only the encoding is improved, and the difference is almost invisible. If it's still too large, switch to “Max” and compare before and after.

Can a GIF have sound?

No. A GIF is always silent. If you need sound, use a video.

Does FileDiet send my GIF to a server?

No. The GIF is processed in your browser, on your device. It is neither uploaded nor stored. The How it works page explains how to check this.

Can a GIF created with ChatGPT be heavy?

Yes, because its weight always depends on the number of frames, the dimensions and the colors. One of our tests weighed 709 KB. If that is too much for your use, you can compress it without uploading it. Everything is explained in ChatGPT GIF too big?.

What are the tool's limits?

To compress a GIF: 25 MB, 300 frames and 4 million pixels per frame. To turn a video into a GIF: an MP4 or MOV file of 50 MB and 10 seconds at most.

Sources

Keep going

75 MB max

Frequently asked questions