The fastest way to shrink a GIF is to reduce the number of frames or colors it contains
A GIF file grows larger with every frame it holds and every color it uses. The quickest reduction comes from removing frames you don't need — if your animation runs at 10 frames per second but only needs 5, cutting it in half cuts the file size roughly in half. The second lever is color count: a GIF with 256 colors takes up more space than one with 128, which takes up more space than one with 64. Most tools let you adjust both without opening a command line.
The trade-off is visible. Fewer frames means choppier motion. Fewer colors means banding — visible stripes where smooth gradients used to be. The goal is finding the point where the file is small enough to use but still looks like what you intended.
Key Takeaways
- Reducing frame count (how many images per second) and color depth (how many colors the GIF uses) are the two main ways to shrink file size.
- Online tools like ezgif.com and Gifsicle let you adjust both settings without installing software.
- Exporting from Photoshop with "Fewer Colors" and a lower frame rate produces smaller files than converting an existing GIF.
- A GIF under 5 MB usually uploads without problems; anything over 10 MB may fail on some platforms.
- If a GIF is still too large after compression, converting it to MP4 video can reduce size by 80 percent or more.
Reduce frames per second to cut file size quickly
Every frame in a GIF is a separate image. A 2-second animation at 10 frames per second contains 20 images. The same animation at 5 frames per second contains 10. Dropping the frame rate in half roughly halves the file size, though the motion will look less smooth.
To adjust frame rate in ezgif.com: upload your GIF, click the "Optimize" tab, and use the "Delay" slider to increase the milliseconds between frames. A delay of 100 milliseconds means 10 frames per second; 200 milliseconds means 5 frames per second. Preview the result before downloading. The change is immediate and you can undo it.
In Gifsicle (a free command-line tool for Windows, Mac, and Linux), the command is gifsicle --delay=200 input.gif > output.gif, where 200 is the delay in milliseconds. If you are not comfortable with command line, ezgif is simpler.
Lower the color count to reduce file size further
GIFs store a color palette — a list of which colors appear in the image. A 256-color palette takes up more space than a 128-color palette. Most GIFs do not need all 256 colors; reducing to 128 or 64 colors often looks nearly identical to the original but saves 20 to 40 percent of the file size.
In ezgif.com, upload your GIF and click "Optimize." Scroll to "Number of colors" and try 128 or 64. Preview the result — if you see banding (visible stripes in gradients) or color loss, move back up to 96 or 112. Download when you are satisfied.
In Photoshop, open your GIF and go to Image > Mode > Indexed Color. Set the palette to "Adaptive" and the number of colors to 128. Click OK, then export as GIF. Adaptive palette chooses the 128 colors that appear most in your image, which usually looks better than a fixed palette.
Combine frame reduction and color reduction for maximum compression
Using both methods together produces the smallest file. Start by lowering the frame rate to 5 or 6 frames per second, then reduce colors to 128. Check the preview. If it still looks good, try 64 colors. If it looks bad, move back to 96 or 128.
A typical 10 MB GIF can often be reduced to 2 to 3 MB this way. The motion will be slightly choppier and colors slightly less smooth, but for most uses — social media, email, web pages — the difference is acceptable and the file uploads much faster.
Export from the source file instead of compressing an existing GIF
If you have the original video or image sequence that the GIF came from, re-exporting with lower settings produces better results than compressing an already-compressed GIF. Compression loses information; starting fresh does not.
In Photoshop, open your video file or image sequence. Go to File > Export As, choose GIF, and click Export. In the GIF Options dialog, set Frame Rate to 5 or 6 (instead of the default 10), and set Colors to 128. Click OK. The new GIF will be smaller and often look better than one compressed after the fact.
In Adobe Animate or After Effects, the same principle applies: lower the frame rate and color depth during export, not after. If you are starting from a video file, FFmpeg (free, command-line) can convert to GIF with frame rate and palette settings built in, though it requires learning the syntax.
Convert to MP4 video if the GIF is still too large
GIFs are inefficient for long animations. A 10-second animation at 10 frames per second is 100 separate images, each stored in full. An MP4 video file of the same animation is often 80 to 90 percent smaller because video codecs compress by storing only the differences between frames, not each frame in full.
Most modern browsers and platforms play MP4 files in place of GIFs. You can embed an MP4 in HTML the same way you would embed a GIF: <video autoplay loop muted><source src="animation.mp4"></video>. The file size savings are usually worth the small change in how you embed it.
To convert a GIF to MP4 in FFmpeg, use ffmpeg -i input.gif -c:v libx264 -crf 23 output.mp4. In ezgif.com, upload your GIF, click "Video" at the top, and download as MP4. The result is usually 1 to 2 MB for what was a 10 MB GIF.
Check file size limits on the platform where you are uploading
Different platforms have different limits. Twitter accepts GIFs up to 15 MB. Discord accepts up to 8 MB for free accounts and 100 MB for Nitro accounts. Slack accepts up to 1 GB but recommends keeping files under 20 MB for fast loading. Email attachments are usually limited to 25 MB by the provider, though many people's inboxes fill up faster with large files.
If your GIF is under 5 MB, it will upload without problems on almost any platform. If it is between 5 and 10 MB, check the specific platform's limits. If it is over 10 MB, compression or conversion to MP4 is usually necessary.
Frequently Asked Questions
What is the smallest file size a GIF can be?
A 1-second GIF at 2 frames per second with 64 colors can be as small as 50 to 100 KB. A 10-second animation at the same settings is typically 500 KB to 1 MB. The smallest possible size depends on the image content — solid colors compress smaller than detailed photographs.
Will reducing colors make my GIF look bad?
It depends on the content. Animations with solid colors or simple shapes often look identical at 128 or 64 colors. Animations with gradients or photographs show visible banding when colors drop below 128. Preview the result before uploading — if it looks acceptable to you, it is acceptable.
Should I use an online tool or download software?
Online tools like ezgif.com are faster for one or two GIFs and require no installation. If you compress GIFs regularly, downloading Gifsicle or learning FFmpeg saves time. Photoshop gives you the most control but costs money and has a learning curve.
Can I make a GIF smaller by changing its dimensions?
Yes. A GIF that is 1920 pixels wide takes up more space than the same animation at 960 pixels wide. Scaling down by half usually reduces file size by 60 to 70 percent. Use ezgif.com's "Resize" tab or Photoshop's Image > Scale Image to shrink the dimensions, then optimize colors and frame rate.
Is MP4 better than GIF for animations?
MP4 is smaller and faster to load, but not all platforms support it the same way. Websites and apps that expect GIF may not play MP4. Check whether your target platform (social media, email, web page) supports video before converting. If it does, MP4 is usually the better choice for anything longer than 3 seconds.