Online GIF Optimizer and Compressor

Shrink an animated GIF by lowering its frame rate, size and colors. The animation is kept.

Upload file

Choose, paste, or drag and drop a file here
Max file size: 1024 MB
or
Supported: animated and still GIF files. Max: 1GB.

About this tool

A GIF's file size is set by three things multiplied together: how many frames it has, how many colors each frame uses and how large those frames are. Shrinking a GIF means reducing one or more of those and the order you reduce them in decides whether the result still looks good.

This tool optimizes GIF files up to 1GB in your browser, with one control for each of those three: frame rate, width and colors.

Pull the levers in this order

Frame count first. This is almost always the biggest win and the least noticeable. Many GIFs run at far more frames per second than they need, especially ones exported from video. Halving the frame rate halves the file and most viewers cannot tell, because the eye is forgiving about animation smoothness in short looping clips. Trimming unnecessary frames from the start and end helps too, since most GIFs have dead time at both ends.

Dimensions second. A GIF displayed at four hundred pixels wide does not need to be eight hundred. Halving the width and height quarters the pixel count and therefore roughly quarters the file. Nothing is lost if the GIF is never displayed larger.

Color palette last. GIF already caps at 256 colors per frame and reducing further is where visible damage starts. Flat graphics and text based GIFs survive heavy reduction. Anything made from video footage starts to band and dither quickly.

Working in that order gets you the most reduction for the least visible cost. Most people do it backwards, crush the colors first, end up with a speckled mess and still have a large file.

The question worth asking first

If the GIF is going on a web page you control, the real answer is usually not to optimize it but to stop using GIF. The same animation as MP4 is dramatically smaller and looks better, because video codecs store differences between frames while GIF stores every frame in full. Use GIF to MP4 and set the video to autoplay, loop and mute.

Keep the GIF and optimize it here, when it needs to work in email, in chat windows, in forum posts or anywhere else that will not play video. That is a real constraint and it is the reason this tool exists.

Why GIFs get so large in the first place

Every frame is stored as a complete image. A three second GIF at thirty frames per second is ninety full images in one file. Video formats store one frame and then describe only what changed, which is why the same animation is a fraction of the size.

This also explains which GIFs compress best. A GIF where most of the frame stays still has a great deal of repeated information and responds well to frame reduction. A GIF where the whole scene moves, such as a panning shot, has very little repetition and will stay large however you treat it.

Supported formats and limits

Animated and still GIF files up to 1GB. The result stays an animated GIF.

Related tools

To replace the GIF entirely use GIF to MP4. For still images use Compress PNG or Compress JPG. To hit a specific size limit use Compress to Target Size.

Frequently Asked Questions

What makes a GIF smaller without ruining it?

Reducing the frame rate first, then the dimensions, then the colors. The first two are usually invisible. The third is where damage shows.

Why is my GIF still huge after optimizing?

Probably because the whole frame is moving, such as a panning or zooming shot. There is little repetition for the format to take advantage of. Converting to MP4 is the real fix.

Will reducing frames make the animation choppy?

Only if you go too far. Many GIFs carry more frames than they need, so halving the rate often looks identical.

Should I just use MP4 instead?

On a web page you control, yes. Keep GIF only where video will not play, such as email and chat.

Does reducing colors hurt the image?

On flat graphics and text, barely. On anything made from video footage, it produces banding and speckling quickly.

Is there a size limit?

1GB per file.