Discord · attachment and emoji presets
Compress a GIF for Discord
Use the 20 MB attachment preset for chat or the 256 KB emoji preset for a custom emoji. See the exact size of your GIF before you download it.
Drop your GIF here
or browse files · GIF up to 60 MB · stays on your device
Target size
19.8 MB target
Starts with lossless optimization. Changes colours, dimensions or frames only when the selected target requires it.
The attachment preset targets 19.8 MB. The emoji preset uses a 253,440-byte target and fits the GIF within 128 × 128 pixels.
How the Discord preset works
Both presets use the same local compression engine and different byte and dimension rules.
-
01
Optimize without changing the image
Gifsicle WASM checks for repeated image data and redundant palette entries. If the smaller GIF already fits, the tool stops here.
-
02
Rebuild only if needed
The tool decodes and composites each frame, then tries a smaller palette or canvas. A tight byte budget may also mean fewer frames. The timing of skipped frames is carried forward in the GIF.
-
03
Check the actual file size
Each pass measures the encoded bytes. The tool stops when the result meets the selected rules or shows the closest result it could produce.
Discord GIF limits
Chat attachments and custom emoji use different limits. Enter your own byte target if the Discord uploader shows a different cap.
| Case | Value | Note |
|---|---|---|
| Standard attachment | 20 MB | The preset targets 19.8 MB for headroom |
| Custom emoji | 256 KB | The GIF preset fits within 128 × 128 px and uses a 1% byte margin |
Discord's limit, in practice
The Discord file attachment FAQ lists 20 MB for standard uploads. Higher limits can apply with Nitro or other account and server settings. The standard preset leaves room below 20 MB, and the custom field can match the limit shown in your uploader.
What actually gets cut
The browser first runs lossless optimization with Gifsicle WASM. If the result is still above the target, the tool can rebuild the GIF with fewer colours, smaller dimensions or fewer frames. It checks the file size after every pass and shows the result before you download.
GIF, or just a short video?
Discord plays MP4 and WebM inline, without a thumbnail or a click. A 5-second clip as H.264 video is typically 300–800 KB — the same clip as a GIF is 3–8 MB. If the clip has photographic colour, the video will also look better, because GIF is limited to 256 colours per frame.
Use a GIF when you specifically need a looping, autoplaying, silent image: a reaction, a meme, a UI demo in a support thread. Use a video when you need the footage to look right.
When the GIF is for an emoji
Discord custom emoji must be under 256 KB. Choose the Discord emoji preset to stay below that cap and fit the GIF within 128 × 128 pixels while keeping its shape.
Questions people ask before shrinking a GIF
Why does Discord say my GIF is too big?
Discord checks the file size when you send it. The standard attachment cap is 20 MB according to Discord’s file attachment FAQ. Emoji uploads use a separate 256 KB cap.
Does the preset leave a safety margin?
Yes. For chat attachments the target is 19.8 MB. For emoji the target is 253,440 bytes and the longer edge is capped at 128 pixels.
Will it look worse after compressing?
The first pass is lossless. If the file still needs to shrink, the tool may change colours, dimensions or frame count. The preview shows the result you will download.
What if the GIF is still above the limit?
The tool measures the actual download in bytes. If none of the available settings reaches your target, it reports the closest result and shows how far over the target it is.
Does Discord use the same limit for custom emoji?
Custom emoji have a separate 256 KB cap. Choose the Discord emoji preset for that uploader.
Turn a video into a GIF
Pick a clip from your phone or desktop, trim it, and get a looping GIF without a converter install.
GIF too big for Discord?
Choose the attachment or emoji preset and check the exact file size before downloading.
Make a GIF smaller, explained
What actually costs bytes in a GIF: frames, colours, dimensions, and the order worth changing them in.