Free GIF compressor and optimizer, no upload
GIF compressor: compress a GIF to the size you need
To compress a GIF, choose it below, pick a strength or a file size to stay under, such as 10 MB or 256 KB, and press Compress the GIF. You see the new size next to the original before you download, with both playing side by side. The work happens in your browser, so the GIF is never uploaded and gets no watermark.
- No sign-up, no watermark
- Your GIF never leaves your device
- Before and after sizes, side by side
Fine tune
We look for the lightest settings that fit: matching between frames first, then fewer colors and a smaller picture, and dropped frames only when nothing lighter fits. 1 MB is 1,000,000 bytes here.
Keep this tab open until it finishes.
How to compress a GIF
Choose your GIF
Tap Choose a GIF, drop a GIF file on the box or paste one. It plays in the preview with its size in pixels, frame count, length and file size.
Pick a strength or a size
Choose one of five strengths, or switch to a file size and pick or type the size to stay under.
Compress it
Press Compress the GIF. For a file size, the tool tries settings from lightest to strongest and keeps the lightest that fits.
Compare and download
The original and the new GIF play side by side with their sizes. Press Download when you are happy with it.
Is the picture larger than it needs to be, or would a video do? GIF resizer or GIF to MP4.
Four ways a GIF gets smaller
A GIF has no quality slider. Its size comes from four things, and the compressor can change each of them, alone under Fine tune or together through a strength.
Matching between frames. A pixel that already shows nearly the right color is left as it is, so the frame stores nothing for it. Light matching is hard to see and removes the flicker of grain and dithering; strong matching can leave faint trails behind things that move.
Fewer colors. A GIF holds at most 256 colors (MDN). With 128, 64 or 32, each pixel takes a shorter code and long runs of one color pack better. Photos start to show bands in skies and skin; drawings and screen recordings usually look the same.
A smaller picture. Three quarters of the width and height is a little over half the pixels. Resizing also smooths away grain, which is why it can save more than the pixel count suggests.
Fewer frames. Dropping every second frame halves what is stored. The frames that stay are shown for the time of the ones that went, so the GIF plays for exactly as long, with choppier movement.
The five strengths, and what they did to two GIFs
These are the sizes we got from two test GIFs of 480 x 270 pixels and 63 frames: one filmed from a still position, with light grain and a small box moving across, and one a camera pan with grain, where every pixel changes on every frame.
| Strength | What it uses | Still camera, 6.25 MB | Camera pan, 9.16 MB |
|---|---|---|---|
| Lossless | A tighter repack, no pixel changed | No saving | No saving |
| Light | Light matching between frames | 2.05 MB | 9.13 MB |
| Medium | Up to 128 colors, stronger matching | 318 KB | 7.15 MB |
| Strong | Up to 64 colors, strong matching, 75% of the size | 42 KB | 2.34 MB |
| Smallest | Up to 32 colors, every second frame dropped, 50% of the size | 14 KB | 387 KB |
The two columns show what decides the saving. Where the camera stands still, matching between frames removes almost everything, because only the grain and the moving box change. In a pan nothing stays the same, so the saving has to come from colors, size and frames, and it shows sooner.
Each run took between half a second and 2.5 seconds. Start with Light, look at the two GIFs side by side, and go one step further only if the size is still too large.
To a file size: under 10 MB, 8 MB or 256 KB
Switch to a file size, pick one of the sizes or type your own, and the compressor looks for the lightest settings that fit. It tries steps on sample frames first: matching between frames, then fewer colors and a slightly smaller picture, and dropped frames only when nothing lighter fits, and only while at least 7 frames a second are left until the very last steps. Then it writes the whole GIF, measures the real file, and goes one step further if it is still over. The result tells you what was used.
In our tests the 9.16 MB pan got under 8 MB with 128 colors and stronger matching (7.15 MB), under 2 MB at 60% of its size with 64 colors (1.41 MB) and under 256 KB at 134 x 76 pixels with 32 colors (181 KB), each time with all 63 frames. The long 45.71 MB GIF of 500 frames got under 10 MB at 80% of its size with 128 colors and every frame kept (8.01 MB) in about 7 seconds.
A size is never promised: when even the strongest step is over your target, you get the smallest file with a note that says it is still over. A shorter GIF would fit then, and Crop GIF can trim frames from the start and the end.
GIF size limits: Discord, Slack and GitHub
Discord's developer documentation gives 20 MiB per file as the default upload limit for all users, and more with Nitro or on a boosted server (Discord). That is 20,971,520 bytes, so the Under 20 MB choice here, which means 20,000,000 bytes, stays inside it. A custom emoji is a different matter: Discord's documentation gives a maximum file size of 256 KiB for emojis and animated emojis, and speaks of a 128 x 128 emoji image (Discord). Under 256 KB here means 256,000 bytes, a little under that limit.
Slack asks for less: square images under 128 KB with transparent backgrounds work best for custom emoji, and a GIF can have up to 50 frames (Slack Help Center). Type 128 and choose KB for that. GitHub takes images and GIFs of up to 10 MB in issues, pull requests and comments (GitHub Docs).
For an emoji, make the picture small first: the GIF resizer has a 128 pixel choice, and a GIF of that size needs far less compression to reach 256 KB.
Lossless: when nothing may change
The first strength changes no pixel. It writes the same pictures again with every color kept, each frame storing only the box around what changed, with unchanged pixels left out and frames that repeat stored once. How much that saves depends on how the GIF was made. Our see-through test animation, which stored 30 whole frames, went from 23 KB to 14 KB. The two GIFs in the table above were already packed that way by the tool that made them, so there was nothing to gain.
The compressor never hands you a larger file. When the result is not smaller than the original, it says so, keeps your GIF as it is and suggests the next step.
When a video is the better answer
Some GIFs are large because of what they show: long, full of movement, filmed with a moving camera. Compression that keeps them looking good only goes so far. If the place you are sending it to plays video, an MP4 of the same animation is a small part of the size: our 9.16 MB pan became a 376 KB MP4 with GIF to MP4, with every frame and its timing kept.
Large GIFs, and what happens to yours
These tools open GIFs of up to 60 MB and 2,000 frames, and fewer frames for very large pictures (frames times width times height may reach 1.2 billion pixels). A larger file is turned away with a message before anything is read. The work runs in a background task of this page, one frame in memory at a time, so the page stays usable: in our tests the page never paused for more than about a tenth of a second while the 45.71 MB GIF was compressed. A progress bar shows how far it is, and Cancel stops it with nothing saved.
Everything happens on your device. The GIF is not sent anywhere, the new GIF has no watermark, and the timing and the loop count are kept. Under the download you can see how many requests this page sent while you used it.
Questions
How do I reduce the size of a GIF?
Choose the GIF on this page, pick a strength or a file size to stay under, and press Compress the GIF. The new size shows next to the original before you download anything.
How do I compress a GIF for Discord?
Switch to a file size and pick Under 20 MB for a message, or Under 256 KB for a custom emoji. Discord's developer documentation gives 20 MiB per file as the default upload limit and 256 KiB for emojis and animated emojis.
Can I compress a GIF to 10 MB, 8 MB or another exact size?
Yes. Choose To a file size, pick Under 10 MB or Under 8 MB or type your own number, and the tool finds the lightest settings that fit and measures the finished file. If no setting reaches your size, it says so and gives you the smallest it made.
Does compressing a GIF lower its quality?
Not at the Lossless strength, which changes no pixel. Light is hard to see. Medium and stronger use fewer colors, a smaller picture or fewer frames, and the two GIFs play side by side so you can judge before you download.
Is this GIF optimizer and size reducer free, with no watermark?
Yes. There is no account, no paid version, no daily limit and no watermark: the new GIF holds only your frames.
Is my GIF uploaded?
No. The GIF is read and written again on your device. Only the tool itself is downloaded from uncrop.si.
Why did my GIF not get smaller?
It was probably packed tightly by the tool that made it, or it changes all over on every frame, as a camera pan does. The compressor tells you when a result is not smaller and never offers a larger file. Try a stronger level or a file size to stay under.
What is the largest GIF I can compress?
Up to 60 MB and 2,000 frames. In our tests a 45.71 MB GIF of 500 frames was brought under 10 MB in about 7 seconds in Chrome on a laptop.
Sources: W3C, GIF89a specification, MDN, Image file type and format guide, Discord Developer Documentation, API reference (uploading files), Discord Developer Documentation, Emoji resource, Slack Help Center, Add custom emoji and aliases to your workspace, GitHub Docs, Attaching files
Open-source code this tool runs on your device: gifenc (MIT), version 1.0.3, picks the palette and compresses the GIF (the dithering and the frame-to-frame savings are our own code).