GIF Compressor for Discord
Fit an animated GIF to your Discord chat attachment limit without dropping frames. Set your target and check the exact download size. Files stay in this browser.
Fit an animated GIF to your Discord chat attachment limit without dropping frames. Set your target and check the exact download size. Files stay in this browser.
ThumbGlance made this four-frame signal-track GIF for this test. Select Try 4-frame sample, then Compress GIF at 0.003 MB. The download leaves 262 bytes to spare. Set 0.0001 MB and compress again: the tool marks the smallest measured file as 678 bytes over and still offers it for download. At 0.011841 MB the source fits exactly and downloads byte for byte.
| GIF | Target / status | File size | Canvas | Frames / one pass |
|---|---|---|---|---|
| Original | — | 11,841 bytes | 240 × 120 px | 4 / 1,200 ms |
| Within target | 3,000 bytes / met | 2,738 bytes | 120 × 60 px | 4 / 1,200 ms |
| Best attempt | 100 bytes / missed | 778 bytes | 60 × 30 px | 4 / 1,200 ms |
These files show an orange, blue, purple, then green marker moving left to right. Check the delays in that order: 120, 240, 360 and 480 ms. The GIF loop field is 2 (two repeats after the first pass). In every frame, (0, 0) is transparent and the center pixel of the canvas is opaque. Count coordinates from the top left, starting at 0. The checkerboard appears only in the preview.
Browser input: Use GIF87a or GIF89a. The input must be at most 12 MiB (12,582,912 bytes), 1,600 px on either side, 150 frames, and 24 million pixels across all frames (width × height × frame count). An oversized or unreadable source shows an error and gives no download. Enter at least 0.000001 MB (1 byte), in whole bytes; an invalid target disables compression.
Discord chat attachments: Discord’s File Attachments FAQ lists 20 MB for free accounts under “What is a File Attachment?” and notes that some accounts get larger limits in tests. In its August 2026 update, “Does Discord check my file size pre- or post-compression?” says desktop and mobile check file size before compression. The older image and GIF guide still says 10 MB. This tool uses the newer guidance for its default: 20 MB = 20,000,000 bytes. Use the budget shown in your Discord upload screen; 7.5 MB is only an example custom target. The tool checks local file size, not account acceptance, and does not upload or check emoji or stickers. Sources checked November 24, 2026.
Encoding: If the source already fits, the tool keeps every byte. Otherwise it tries 100%, 75%, 50% and 25% of its original dimensions. At each size it tries up to 255, 31 and 7 opaque colors plus transparency, and stops at the first fit. Lower dimensions remove detail; fewer colors can flatten gradients. Re-encoding keeps frame order, delays, duration, loop and transparency at output resolution; it drops no frames. See GIF89a §§18–20 and 23 for the canvas, color tables, frame rectangles and graphics controls.