To reduce GIF file size, cut what the file has to store: fewer pixels in each frame, fewer frames and fewer colors. Halving the width and height leaves a quarter of the pixels and usually saves the most, while dropping the palette from 256 colors to 64 or 32 shrinks the file further at some cost to smooth gradients.
GIF Compressor handles the color step and can aim for a size you type in KiB. Animated GIF Resizer handles the dimensions. For clips that look like video, MP4 or animated WebP is usually far smaller than any GIF.
How to reduce GIF file size with GIF Compressor
- Open GIF Compressor and drop your GIF on the upload area, or click Choose file. It takes one animated or still GIF up to 16 MiB.
- Under Maximum colors, keep 128 (the default) for a first try, or pick 64 or 32 for a smaller file.
- If you have a limit to meet, type it in Target size (KiB, optional). The encoder then tries up to two smaller palettes, down to 16 colors, and keeps the first result that fits or else its smallest attempt.
- Click Convert Now. The GIF is uploaded and compressed on Zutilium's server.
- Read the result line: the pixel size, the old and new file sizes and the percentage change, plus whether your target was met or exceeded. Open Preview animation and watch a full loop.
- Click Download. To compare another palette, choose Convert another file and add the same GIF again.
Then check three things. If the percentage says "larger", keep your original. If skies, shadows or skin show stripes of flat color at 64 or 32 colors, go back up a step: the compressor does not dither. If the target note says "exceeded", even 16 colors was not enough: reduce the dimensions or the frame count.
Only the palette changes: the dimensions, frame timing and looping stay as they were. After a successful conversion, the upload is scheduled for deletion after about a minute and the result after about ten minutes, so download it promptly.
Why GIF files get so big
A GIF stores every frame as a grid of pixels. Each pixel is an index into a palette of at most 256 colors, and the grid is packed with LZW, a lossless compression method (MDN's image format guide describes the format). Three things follow from that design:
- Size grows with pixels times frames. A 4-second clip at 640 × 360 and 10 frames per second holds 40 frames of 230,400 pixels each, or 9.2 million pixels in total.
- Motion is expensive. Video codecs predict each frame from its neighbors. A GIF can only skip areas that stay identical, so a panning camera or a moving background forces it to store nearly every frame in full.
- Detail and noise compress badly. LZW shrinks repeated runs of the same values. Film grain, video compression artifacts and dithering (fine dot patterns that fake extra colors) break those runs up.
Which changes shrink a GIF the most
The pixel counts below are exact; file size follows them roughly, because busy frames cost more bytes than flat ones.
| Change | What is left | What you give up |
|---|---|---|
| Halve width and height | 25% of the pixels | Fine detail, small text |
| 15 fps down to 10 fps | 67% of the frames | Smoothness in fast motion |
| Trim 6 seconds to 4 | 67% of the frames | Part of the clip |
| 256 colors down to 64 | Same pixels, simpler data | Banding in gradients |
| Lossy LZW encoding | Same pixels, approximate data | Grain and streaks |
Dimensions come first. Match the size the GIF will be shown at; extra width only adds weight.
Frames come second. Ten to 15 frames per second is enough for most GIFs, and GIPHY's upload guidelines say fewer than 200 frames works well and fewer than 100 even better. Cut slow starts and endings before you lower the frame rate.
Colors are the finishing step. Dithering hides banding but adds the kind of noise LZW handles poorly, so a reduced palette without dithering gives a smaller file that looks flatter.
Lossy LZW accepts near-matches so the repeated runs get longer. GIF Compressor does not offer it, but gifsicle does (see below).
Worked example: colors versus dimensions
Two 4-second GIFs, both 640 × 360 with 40 frames at 10 fps and saved at 256 colors, were run through the encoder behind GIF Compressor and Animated GIF Resizer. One pans across an aerial photo of a forest; the other scrolls down a screenshot of a web page. Sizes appear as the tools report them, where 1 MB is 1,024 KB.
| Setting | Photo pan | Page scroll |
|---|---|---|
| Original GIF | 8.68 MB | 1.09 MB |
| 256 colors | 7.67 MB (−12%) | 1,005 KB (−10%) |
| 128 colors (default) | 6.78 MB (−22%) | 996 KB (−10%) |
| 64 colors | 5.44 MB (−37%) | 912 KB (−18%) |
| 32 colors | 4.17 MB (−52%) | 775 KB (−30%) |
| Resized to 320 × 180 | 2.27 MB (−74%) | 399 KB (−64%) |
| Resized, then 64 colors | 1.58 MB (−82%) | 315 KB (−72%) |
Halving the dimensions beat every palette setting on both files, and combining the two gave the smallest result. The photo pan gained far more from fewer colors than the page scroll, whose flat interface colors left little to remove.
With 128 colors and a 1024 KiB target, the photo pan's best attempt was 3.05 MB at 16 colors, so the result line ended with "1024 KiB target exceeded". The page scroll met the same target on its first attempt. Your numbers will differ with the content.
Other ways to compress a GIF
gifsicle is a free, open-source command-line GIF editor. This command optimizes the frames, applies lossy compression, reduces the palette to 128 colors and scales the GIF to 480 pixels wide:
gifsicle -O3 --lossy=80 --colors 128 --resize-width 480 input.gif -o smaller.gif
In the gifsicle manual, -O3 tries several optimization methods and --lossy defaults to 20; higher values give smaller files with more artifacts. Dithering stays off unless you add --dither. To keep part of a clip, select frames by number from #0:
gifsicle input.gif "#0-29" -o first-30-frames.gif
GIMP covers the color and optimization steps by hand. Image > Mode > Indexed sets a maximum number of colors, and the Optimize (for GIF) filter in the Animation filters menu reduces an animation's size before you export it.
Make the GIF again from the source. If you still have the video, a new, smaller GIF beats squeezing the old one. Video to GIF has Maximum dimension (px), Frames per second and Duration (seconds, up to 30) settings, and the guide to making a GIF from a video shows how they multiply. If you built the GIF from photos, rebuild it in Animated GIF Maker with fewer images or a smaller GIF width (px).
GIF size limits on Discord, X, GIPHY and Gmail
As of November 2026 (limits change, so check the linked pages):
| Destination | Limit | Notes |
|---|---|---|
| Discord | 20 MB per file without Nitro | Nitro Basic 50 MB, Nitro up to 1 GB |
| X | 15 MB per animated GIF | Recommends up to 1280 × 1080 and 350 frames |
| GIPHY | 100 MB and 15 seconds | Recommends 8 MB or less and 6 seconds or less |
| Gmail | 25 MB of attachments | Personal accounts; bigger files go as a Drive link |
To hit a limit, type a target a little below it. Services rarely say whether a megabyte means 1,000,000 or 1,048,576 bytes, while GIF Compressor counts KiB of 1,024 bytes, so for X's 15 MB enter about 14000, and for GIPHY's recommended 8 MB about 7500.
Discord's free limit is higher than the compressor's 16 MiB upload cap, so any GIF the compressor accepts already fits. A GIF too big for Discord needs gifsicle, a new export from the source, or a switch to MP4. Emoji, stickers and emotes have far tighter rules; see how to resize a GIF for Discord, Slack and Twitch.
When MP4 or WebP is the better format
A smaller GIF is still a GIF: 256 colors per frame and no motion prediction. Switch formats when the destination allows it.
- The destination plays video. GIF to MP4 accepts GIFs up to 50 MiB and makes a silent H.264 MP4. The output is opaque, and a smaller file is likely but not guaranteed. The GIF to MP4 guide covers looping and timing.
- It is your own website. Google's web.dev guide recommends replacing animated GIFs with a muted, looping, autoplaying video. Animated WebP also works in current versions of the major browsers. Zutilium's WebP Converter saves still images only, so for animation use Google's gif2webp, for example
gif2webp -mixed input.gif -o output.webp. - Only GIF uploads are allowed, or you need transparency where WebP isn't accepted. Keep the GIF and use the levers above.
Troubleshooting
The compressed GIF is bigger than the original
GIF Compressor re-encodes every frame with a fresh palette, so a GIF that another tool already optimized can come out larger, especially at 256 colors. Keep the original, try 64 or 32 colors, or reduce the dimensions instead.
The target is exceeded even at 16 colors
The palette is no longer the problem. In Animated GIF Resizer, set Width (px) to about half the current width and leave Height (px, optional) blank to keep the proportions. Its result offers What next?, which carries the smaller GIF into GIF Compressor without choosing the file again. If it still does not fit, shorten the clip or switch to MP4.
The GIF is refused as too big or too long
The file can be at most 16 MiB ("Each file must be no larger than 16 MB"), and the animation at most 300 frames, 4,096 pixels per side and 16 million pixels across all frames ("Use at most 300 frames and 16 million pixels across the animation"). Multiply width × height × frames to check: a 480 × 270 GIF can have 123 frames, a 640 × 360 GIF 69 and an 800 × 600 GIF 33. For bigger animations, export a smaller GIF from the source video, run gifsicle on your computer, or convert with GIF to MP4, which takes GIFs up to 50 MiB.
"GIF processing is busy" or "GIF processing timed out"
The server runs two GIF jobs at a time and stops a job that takes longer than one minute. Wait a moment and convert again; if it times out, resize or shorten the GIF first.
Frequently asked questions
How do I make a GIF smaller without losing quality?
Only a few changes leave what viewers see untouched: cropping unused borders, trimming frames at the start and end, and scaling the GIF down to the size it is actually displayed at. For a pass that keeps every frame looking the same, run gifsicle -O3 input.gif -o smaller.gif without --lossy or --colors: it stores only the parts of each frame that change, so it helps most when much of the picture stays still. Fewer colors and lossy compression always change pixels, though at 128 colors many animations look close to the original.
How many colors should a GIF have?
Start with 128, the default, and go lower only while the preview still looks right. In the worked example above, 32 colors made the photo pan 52% smaller but the page scroll only 30% smaller, while halving the dimensions cut both by 64% or more. Keep 128 or 256 for skies, gradients and skin tones, which show bands first.
What is the GIF size limit on Discord?
As of November 2026, Discord's File Attachments FAQ lists 20 MB per upload without Nitro, 50 MB with Nitro Basic and up to 1 GB with Nitro. Custom emoji and stickers have much smaller limits, covered in the guide to resizing GIFs for Discord, Slack and Twitch.
Is MP4 smaller than GIF?
Usually, for anything that looks like video, because video codecs such as H.264 predict motion between frames and GIF cannot. In Google's web.dev example, a 3.7 MB GIF became a 551 KB MP4. The trade-offs: the destination has to play video, and transparency is lost, since GIF to MP4 makes opaque files.