Every platform caps how large a GIF can be, and most of them fail the upload without telling you by how much. This page collects the limits that actually affect GIFs, and the settings that get you under each one.
Checked November 2026. These change without announcement. Where a figure below is wrong, it is usually because it is one or two revisions out of date rather than invented.
The limits
| Destination | Limit | Notes |
|---|---|---|
| Discord — custom emoji | 256 KB | Hard cap, static and animated alike. Emoji render at roughly 32 px, so 128×128 is already generous. |
| Discord — file upload (free) | 20 MB | Was 8 MB for years, then 10 MB, then raised again in 2026. |
| Discord — Nitro | 50–500 MB | Depends on tier. Almost never the binding constraint for a GIF. |
| Slack — custom emoji | 128 KB | Half of Discord's, and the one people hit most often. |
| Slack — file upload | 1 GB | Effectively unlimited for GIFs, though workspace admins can lower it. |
| X / Twitter — GIF post | 15 MB | Also 1280×1080 px and 350 frames maximum. X re-encodes GIFs to video on upload. |
| WhatsApp — media | 16 MB | WhatsApp converts large GIFs into looping video, sometimes losing the loop. |
| Gmail — attachment | 25 MB | But base64 encoding adds about a third: a 20 MB file becomes ~27 MB in transit. Treat ~18 MB as the real ceiling. |
| Outlook.com — attachment | 20–25 MB | Varies by account type. |
| Email body / newsletter | ~1 MB | Not a limit — a practical target. Above roughly 1 MB, clients start delaying the image or clients block it. |
| Your own web page | — | No cap, but decorative GIFs should stay under 1 MB and hero animations under 2–3 MB, or they cost you Core Web Vitals. |
Three pieces of advice that are out of date
"Compress your GIF under 8 MB for Discord"
This was true for years and got copied into thousands of guides. Discord's free limit has moved twice since. Compressing to 8 MB when the cap is 20 MB means throwing away quality for no reason — and on a GIF, quality thrown away is quality you cannot get back.
"Twitter's GIF limit is 5 MB"
5 MB is X's limit for a still image. Animated GIFs get 15 MB. The confusion is understandable — the two figures sit next to each other in the documentation — but it means people over-compress for no reason. Note that 15 MB is the ceiling for the upload; X then converts the GIF to MP4 for playback, so a 3 MB file loads far better in a timeline.
"Slack has a 1 GB limit so size does not matter"
True for attachments, irrelevant for emoji, which have a hard 128 KB cap. If you are making a Slack emoji, the file-upload limit is not the number you are fighting.
Settings that hit each target
The order matters: cutting duration is free, cutting dimensions costs some sharpness, cutting colours costs fidelity. Pull them in that order.
| Target | Width | fps | Colours | Command |
|---|---|---|---|---|
| 128 KB (Slack emoji) | 128 | 10 | 32 | Square crop, under ~20 frames |
| 256 KB (Discord emoji) | 128 | 10 | 64 | Square crop, under ~40 frames |
| Under 1 MB (email) | 320 | 10 | 64 | Keep the loop under 3 s |
| Under 5 MB (social) | 480 | 12 | 128 | Trim to 3–6 s |
| Under 15 MB (X) | 640 | 12 | 256 | Also check frame count ≤ 350 |
The compressor takes a target in kilobytes and searches for the best-looking combination that fits, which is faster than tuning these by hand.
Why the platform matters more than the number
A limit is not the only thing that changes your file. Several platforms do something to it after upload:
- X/Twitter converts GIFs to MP4. Your 256-colour dither pattern goes through a video encoder, which smooths it. Files that look slightly grainy on your disk often look cleaner in the timeline.
- WhatsApp converts large GIFs to looping video. If the loop breaks or the GIF arrives as a still image, the file was too large for the conversion path it chose.
- Reddit re-hosts as video. The GIF you uploaded and the thing people watch are different files.
- Discord shows large GIFs as static thumbnails on mobile. Under roughly 256 KB they animate inline without a tap; above it, some clients show a still until you click.
This is the strongest argument for sending video instead of GIF wherever the destination allows it. If the platform is going to turn your GIF into a video anyway, you may as well supply a good video — it will be smaller and look better. The GIF to MP4 tool does that conversion locally.