Video Editing

How to Make a GIF Smaller (Reduce GIF File Size)

Shrink a GIF that's too big: cut the length, lower the width and frame rate, reduce colors. How each setting affects size, plus a tool that fits a limit.

A silver iPad lying on a white table

To make a GIF smaller, cut its length, lower its width, lower its frame rate, or reduce its colors. Length and width matter most. If you're making the GIF from a video, the MobileStudio Video to GIF tool does this for you: choose a size limit of 1, 5, or 10 MB, and it rebuilds the GIF smaller until it fits.

The short answer

ChangeTypical size savingVisible cost
Halve the lengthAbout 50%Less content
640 to 480 px widthAbout 40%Slightly less sharp
15 to 10 fpsAbout 33%Slightly less smooth
256 to 128 colorsVariesSome banding
Crop to the important areaOften 50% or moreNone

Why is my GIF so big?

GIF stores every frame as a full image with up to 256 colors, and it has no modern motion compression. The Library of Congress describes the format in its GIF overview. That's why a 10-second GIF can be larger than a minute of MP4. Every extra second, pixel, and frame adds to the file.

How do I make a GIF smaller from a video?

  1. Open Video to GIF.
  2. Drop in the original video, not an existing GIF.
  3. Shorten the Length to the part that matters.
  4. Pick the Size target you need: 1 MB for email and docs, 5 MB for most sites.
  5. Click Create GIF.

If the result is over your target, the tool automatically rebuilds it at a smaller width and, if needed, a lower frame rate, then checks again. You get a GIF that fits on the first download.

Which setting should I change first?

  1. Length. Trim to the moment that tells the story. Three seconds is often enough.
  2. Area. Crop out the empty parts of the frame with the crop tool before converting.
  3. Width. 480 px is sharp on most screens; 320 px suits chat apps.
  4. Frame rate. 10 fps looks fine for screen recordings and most clips.
  5. Colors. Last resort, because it causes banding on photos and gradients.

How do I make an existing GIF smaller?

If you only have the GIF, not the video, free command-line tools help. FFmpeg can re-encode it at a smaller size:

ffmpeg -i big.gif -vf "fps=10,scale=480:-1:flags=lanczos,split[a][b];[a]palettegen[p];[b][p]paletteuse" small.gif

The FFmpeg documentation explains the filters. Starting from the original video always gives better results, though, because each GIF conversion loses detail.

What size limit should a GIF meet?

WhereAim for
EmailUnder 1 MB
Slack, Discord, chat1 to 5 MB
GitHub READMEUnder 5 MB
Product Hunt galleryUnder 5 MB
Websites and blogsUnder 2 MB per GIF

For READMEs, GitHub also warns about very large files, as it explains in About large files on GitHub. See how to add a GIF to a GitHub README.

Should I use MP4 instead?

If the platform supports video, yes: an MP4 is often a tenth of the size with better quality. Use GIF where video doesn't autoplay or isn't allowed. The comparison is in GIF vs MP4, and the video compressor shrinks MP4s to an exact size.

Where MobileStudio fits

Video to GIF is one of our free tools. MobileStudio itself turns screen recordings into polished app demo videos. Get MobileStudio.

Quick FAQ

How do I reduce a GIF's file size?

Shorten it, lower the width and frame rate, or use Video to GIF with a size target.

How do I make a GIF under 1 MB?

Keep it to 2 to 4 seconds at 320 px and 8 to 10 fps, or let the tool fit it to 1 MB.

Does making a GIF smaller reduce quality?

Some. Cutting length and cropping cost nothing visible; width and colors do.

Why is my GIF bigger than the video?

GIF has no modern compression. That's normal.

What's the best frame rate for a small GIF?

10 fps for most clips.

gif sizereduce gifcompress gifgif optimizationfile size
Turn your screen recording into a polished app demo

Device frames, zooms, and backgrounds, edited right on your phone. Now on Google Play, iPhone coming soon.

Get MobileStudio