How do I compress a GIF and make it smaller?
To make a GIF smaller you have to throw away some of what it stores. A GIF is a stack of full pictures, one per frame, each limited to 256 colours, and its size grows with three things: the width and height, the number of frames, and how many colours each frame uses. This tool lets you lower all three and see the result: Frames per second, Width and Colours.
It is the right tool when a GIF is too heavy to attach, upload or paste: an email limit, a ticket system, a README that loads slowly, a chat that refuses the file. It resizes and recompresses; it does not cut the animation, so to shorten a clip go back to the video with Video to GIF and select a shorter part.
Under the hood it runs FFmpeg compiled to WebAssembly in your browser. For every GIF it first builds a palette made for that animation, then redraws each frame on it with ordered (Bayer) dithering, and it resamples the size with the Lanczos filter, which keeps edges sharper than a plain shrink. The loop is set to repeat forever. The engine is about 32 MB, downloads from this site once and stays saved on your device. Your GIFs are never uploaded, and there is no watermark or account.
How to compress a GIF step by step
- Drop one or more GIFs on the page or pick them with the button. Only
.giffiles are accepted. An example GIF is loaded first so you can try the settings. - Move Frames per second (5 to 30, default 10). Fewer frames mean a lighter file and choppier movement.
- Choose Width: Keep the width, or 640, 480, 320 or 240 px. The height follows the proportion. Pick a width smaller than the original: the tool does not check, so a larger value enlarges the GIF and makes it heavier.
- Choose Colours: 256, 128 (default), 64 or 32.
- Click Compress GIF. The first time, the engine downloads before the work starts; a progress bar shows each file.
- Download the result. It keeps the original name with
-smallerbefore the extension (demo.gifbecomesdemo-smaller.gif). Next to each file you see how much was saved, as a percentage. With several files you can download everything as a ZIP.
Examples
A screen recording that does not fit in a ticket
checkout-bug.gif, 1280 x 720, 3 seconds at 25 fps (75 frames). Settings: 10 fps, width 640, 128 colours.
| Before | After |
|---|---|
| 1280 x 720, 75 frames | 640 x 360, 30 frames |
Pixels per frame drop to a quarter and frames to 40%, so the file ends up a small fraction of the original. Interface colours are flat, so 128 colours lose nothing visible.
A reaction GIF for a chat
cat.gif, 480 x 270, 15 fps. Settings: 12 fps, width 320, 64 colours.
| Before | After |
|---|---|
| 480 x 270 | 320 x 180 |
Photos with gradients are where colours show: if you see steps in the cat's fur, go back to 128 or 256 colours and reduce the width instead.
A batch of product animations
Ten GIFs of 800 px, each about 3 MB, for a store page. Drop all ten, use width 480, 15 fps and 128 colours, and click once. You get ten -smaller.gif files and a Download all as ZIP button.
A GIF that is already small
dot.gif, 64 x 64, 20 KB. Recompressing it can make it bigger: the result list then shows "bigger" instead of "saved". Keep the original in that case.
Common errors and how to fix them
- "... is not a supported file for this tool.": only GIF files are read. Convert other formats first; for video use Video to GIF.
- The browser ran out of memory: very large GIFs (thousands of frames or 4K) fill the memory of a phone. Try one file at a time, a smaller width, or close other tabs.
- The result is bigger than the original: the GIF was already optimised, or you chose a width larger than its own. Lower the width, the frames per second or the colours.
- Banding or noise in gradients: use 256 or 128 colours; saving bytes with 32 colours shows steps in skies and skin.
- The animation looks jerky: raise the frames per second. Below 10 fps fast movement skips.
- The engine download fails: check your connection and click Try again; what already arrived is kept.
GIF, MP4 or WebP: which one to keep?
Is GIF the best format for a short animation?
Rarely. GIF is the most compatible, but it stores every frame as a separate picture. A video of the same clip is usually several times smaller; see GIF to MP4. Use GIF when the place you are posting only accepts images, such as many forums, email clients and README files.
How much smaller will my GIF get?
It depends on the content. As a rule, halving the width removes about three quarters of the pixels of each frame, and halving the frame rate removes half of the frames. Flat colours (screen recordings) shrink far more than photos. The result list shows the real saving.
Does compressing reduce quality?
Yes, it is lossy: fewer colours, fewer frames and fewer pixels. GIF never had more than 256 colours per frame, so going from 256 to 128 is often invisible on graphics and visible on photos. Preview the result before replacing your file.
Can I make a GIF smaller without changing its size?
Yes: keep Keep the width and lower colours and frames per second. Gains are smaller than when you shrink the width.
Is my GIF uploaded?
No. FFmpeg runs inside your browser after the engine downloads from this site. The file never leaves your device.
Does it work on a phone?
Yes in current mobile browsers, with less memory than a computer: use one file at a time and widths up to 480 px.
Can I turn the GIF into frames or a video instead?
Yes: GIF to frames splits it into PNG files, and GIF to MP4 converts it to a much lighter video.