How to Make a GIF File Smaller

Published

A GIF that is too large to upload is useless. Twitter caps GIF uploads at 15 MB, Discord at 8 MB, and WhatsApp at 16 MB — and those limits apply to the file you send, not what you started with. If your GIF is over the limit or just painfully slow to load, here are the most effective ways to compress it without making it look terrible.

Continues below the image
How to Make a GIF File Smaller - illustration

Reduce the Canvas Dimensions

Resizing is the single most powerful lever for reducing GIF file size. Because image data scales with the square of the dimensions, cutting the width from 800px to 400px does not halve the file size — it reduces it to roughly one quarter. Most GIFs look perfectly sharp at 480px wide on a phone screen, and even at 360px they remain legible for most subjects. Use Ezgif's Resize tool (free, browser-based) to enter a new width and let it calculate the proportional height. The difference in file size is usually dramatic.

To do the same thing in Photoshop, go to Image then Image Size, enter your target width, make sure Constrain Proportions is checked, and click OK. Then re-export using Save for Web (Legacy) with the same GIF settings as before.

Reduce the Frame Count

Every frame you delete from a GIF makes the file smaller. Open your GIF in Ezgif's editor or in Photoshop's Timeline panel and look for frames that are nearly identical to their neighbors — these are good candidates to remove. In Photoshop, click a frame in the Timeline to select it and press the trash icon to delete it. Removing every other frame from a smooth 24fps animation brings it down to 12fps, which is still watchable and cuts the file size approximately in half. For less action-heavy content, dropping to 10fps is often barely noticeable.

Ezgif has an Optimize tool specifically designed for this. Upload your GIF, choose the Optimize tab, set a target frame reduction percentage, and it automatically drops the least distinct frames while preserving the overall motion.

Shorten the Duration

A 10-second GIF is almost always larger than necessary. If you can trim it to 4 or 5 seconds by cutting the beginning and end, do it. The best reaction GIFs and viral clips tend to run 2–6 seconds for a reason — brevity keeps the loop feeling fresh rather than monotonous, and it dramatically reduces file size. Use Ezgif's Crop tool or Photoshop's Timeline to delete frames from the beginning or end of the animation.

Lower the Color Palette

GIF supports a maximum of 256 colors per frame. Most compressed GIFs use far fewer than that. In Photoshop's Save for Web dialog, try reducing Colors from 256 to 128 or even 64 and compare the visual result in the preview. Photographic content — which has millions of subtle color gradations — suffers noticeably from palette reduction. Graphic content, cartoons, and text-heavy GIFs often look essentially the same at 128 colors as at 256. Dithering (set to Diffusion in Photoshop) helps by simulating missing colors through pixel patterns, but it adds its own visual texture.

Use an Online Compression Tool

If you do not want to go through Photoshop, Ezgif's Optimize tool and Gifsicle (a command-line tool available as a web interface on several sites) are both effective. Upload your GIF, choose a compression level or file size target, and download the result. These tools use a combination of frame deduplication, palette optimization, and lossless compression to reduce size. For lossy compression that aggressively targets file size at the cost of some visual quality, Gifsicle's lossy mode produces the smallest files of any tool and is worth trying if your GIF is still too large after the steps above.

Convert to a Different Format

Sometimes the right answer is not to compress the GIF but to use a format that handles animation more efficiently. MP4 video at the same visual quality is typically 5–10 times smaller than a GIF, which is why platforms like Twitter and Discord actually convert uploaded GIFs to MP4 behind the scenes. If you are uploading to a platform that accepts video, consider sharing as MP4 instead of GIF. The MP4 to GIF tool works in both directions if you need to convert back.

For more on GIF creation from scratch, the main how to make GIFs guide covers all the methods and tools. If quality is the issue rather than file size, the guide on making a high quality GIF covers the settings that produce the sharpest results. And if you are creating GIFs in Photoshop and want to understand the export dialog in more detail, the Photoshop GIF guide has a full breakdown.