GIF Compressor

: Compress animated GIFs to a smaller file or a target size such as Discord's upload limit: fewer colours, smaller scale, fewer frames, animation kept, no upload
GIFs
Limits: GIF · Each GIF is decoded and written again one frame at a time, so large GIFs work too. Frame timing, the loop count and transparency are kept.
Compressed
Optional. Discord: 20 MB a file (free), 256 KB an emoji.
Options
Smoother gradients when colours are cut; a larger file.
Each GIF appears here once it is compressed.

Make an animated GIF smaller without turning it into a video: the tool rewrites the GIF with one shared palette and only the pixels that change in each frame, and can go on to fewer colours, a smaller size or fewer frames until it fits a target size you type, such as Discord's upload limit. Your browser decodes and writes the GIF in this tab, so the file is not uploaded, and it stays an animated GIF with its timing, loop count and transparency.

  1. Press Open files or drop one or more GIFs on the page; Add files adds more. Example makes a small animated GIF and compresses it.
  2. To fit a limit, type a Target size such as 500 KB or 20 MB. Leave it empty to just rewrite the GIF at the settings you choose.
  3. Choose the Colours (256, 128, 64, 32 or 16), the Scale % (100 keeps the size), Keep frames (all, every 2nd or every 3rd) and Dither. With a target size these are the settings the search starts from and never goes above.
  4. Each GIF starts as soon as it is added, and again when you change a setting. The row shows the frame counter and, with a target, which settings are being tried; Cancel stops it.
  5. When it is done the compressed GIF plays in the results list with its old and new size, the percentage saved, its size, frames and colours, and what the target search changed. Download one, or Download all for several as a ZIP. A file cat.gif is saved as cat-compressed.gif.

How a target size is read and the settings the search walks through, from the tool's own functions. Each line is a target size; the search starts from 256 colours, 100% size, all frames, tries at most six of these steps, and stops at the first one that fits.

Input
20 MB
256 KB
1.5 mb
10 KB
Output
20 MB → 20 MB (20,971,520 bytes); first steps: 128 colours | 64 colours | 64 colours, 90% size | 64 colours, 75% size …; last: 16 colours, 40% size, every 3rd frame
256 KB → 256 KB (262,144 bytes); first steps: 128 colours | 64 colours | 64 colours, 90% size | 64 colours, 75% size …; last: 16 colours, 40% size, every 3rd frame
1.5 mb → 1.5 MB (1,572,864 bytes); first steps: 128 colours | 64 colours | 64 colours, 90% size | 64 colours, 75% size …; last: 16 colours, 40% size, every 3rd frame
10 KB → 10 KB (10,240 bytes); first steps: 128 colours | 64 colours | 64 colours, 90% size | 64 colours, 75% size …; last: 16 colours, 40% size, every 3rd frame

How do I compress a GIF without losing quality?

Leave Colours at 256, Scale % at 100 and Keep frames at All, and press nothing else: the frame-difference rewrite alone often shrinks a screen recording or simple animation by half or more. A GIF with 255 colours or fewer keeps every colour exactly; one with more is reduced to a shared 256-colour palette.

Why is my GIF so big?

Each frame is stored as a whole picture, so size grows with frames times pixels. A 3 second clip at 15 frames a second is 45 pictures. Cut the frames or the Scale %, or use fewer colours; the Example GIF went from about 142 KB to about 27 KB just by storing only what changes.

How do I make a GIF under 20 MB or small enough for Discord?

Type 20 MB as the Target size (or 256 KB for an emoji). The tool lowers colours, then size, then frames only as far as needed and tells you what it changed. As of December 2026 Discord's free upload limit is 20 MB.

Is my GIF uploaded, and is there a size limit?

No: your browser reads the GIF and writes the new one in this tab, so nothing is sent anywhere. The site sets no size limit; the limit is your device's memory, and the page says so if a GIF is too big for it.

What is the difference between lossy and lossless GIF compression?

Lossless rewrites the GIF so the picture is the same: shared palette, only changed pixels, merged duplicate frames. Lossy changes the picture to save space: fewer colours, a smaller size, fewer frames. This tool does the lossless part always and the lossy part only as you set it or as a target size needs. Lossy LZW is not implemented.

Runs entirely in your browser. Nothing is uploaded.