Every social platform has a file size limit for GIF uploads. Discord allows 20MB on the free tier — raised from 10MB in August 2026, which is why so many guides still say 8MB. X allows 15MB for GIFs; the 5MB figure people quote is its still-image limit. Email clients clip messages over 102KB. If you have ever had a GIF rejected by a platform at the last second, you know the frustration.
This guide breaks down every major platform’s GIF size limit, why those limits exist, and exactly how to hit them — including fallback strategies when standard compression is not enough.
The Platform Limit Cheat Sheet
| Platform | Max GIF Size | Why This Limit Exists | What Happens If You Exceed It |
|---|---|---|---|
| Discord (free) | 20MB (was 8MB) | Server storage costs, message delivery speed | Upload blocked. Smaller file required. |
| Discord (Nitro) | 500MB | Premium tier benefit | Upload blocked above 500MB |
| X / Twitter (GIF) | 15MB | Bandwidth costs at X’s scale | Upload rejected with error message |
| X / Twitter (still image) | 5MB | Bandwidth costs | This is where the widely quoted 5MB figure comes from |
| N/A | Platform auto-converts GIFs to video on upload | GIF is silently converted, loses looping | |
| 16MB | Message delivery over mobile networks | Upload blocked above 16MB | |
| Telegram | 2GB | No practical limit for GIFs | N/A |
| Slack | 1GB | Enterprise file sharing | Under 5MB recommended for inline preview |
| 20MB | Community content sharing | Upload blocked above 20MB | |
| 25MB | Social media standard | May auto-convert to video | |
| Gmail inline | 102KB (entire message) | Prevent inbox bloat | Message clipped with “View entire message” link |
| Outlook | 20MB attachment | Corporate email infrastructure | Attachment may be blocked or delayed |
Why Platform Limits Exist — and Why They Are So Different
Platform limits are not arbitrary. Each one reflects a different engineering constraint:
- Discord’s 20MB balances server storage costs against user experience in real-time chat. Every uploaded file is replicated across Discord’s CDN. At Discord’s scale (millions of messages per minute), even a 1MB increase in the limit adds petabytes of storage — which is why the cap moved slowly, from 8MB to 10MB and then to 20MB in August 2026.
- X’s 5MB still-image limit is about bandwidth at scale. The 15MB GIF allowance is looser because X converts GIFs to MP4 on upload, so it stores the re-encoded video rather than your original file.
- Gmail’s 102KB clipping threshold dates back to when most people read email on dial-up. It has never been raised because Gmail uses clipping as a design pattern — the full message loads on demand.
Understanding these constraints helps you think about compression differently. You are not just trying to get under an arbitrary number. You are respecting the infrastructure constraints of platforms serving millions or billions of users.
The Universal Compression Strategy
Regardless of which platform you are targeting, the workflow is the same. The only thing that changes is the target size:
- Resize first. A 1920px GIF will never hit any platform limit. Resizing to 600-800px width alone removes 70-85% of the data. Use the GIF Resizer before touching any compression settings.
- Set your target. Our GIF Compressor has one-click platform presets for the caps, plus an Any size box for everything else — type 5 MB, 8 MB, 2 MB, whatever the destination needs, and it searches for the lightest level that fits.
- Preview before sharing. The comparison slider shows exactly what your audience will see. Check for color banding, frame stutter, and text readability.
- Have a fallback. If compression is not enough, convert format. MP4 for long animations, WebP for web performance.
Platform-by-Platform Compression Guide
Discord
Discord is where most GIF compression happens. The 8MB figure people still quote is out of date — the free-tier cap is 20MB, raised from 10MB in August 2026.
Typical scenario: You find a perfect reaction GIF on GIPHY. It is 12MB. You paste it into Discord. It uploads now — but it arrives as a download link nobody clicks. Size is still the problem; the threshold just moved.
The fix:
- Resize to 600px width first. A 1080px GIF at 600px is 70% smaller before any compression.
- Type 5 into the Any size box in the compressor and press Go. It searches for the lightest level that lands under 5MB, which is where a GIF starts playing inline instead of arriving as a download link.
- For best results, manually set Balanced mode at level 60-80. This keeps reaction GIFs looking crisp at 500KB-2MB — fast to load and still detailed.
- Discord Nitro users can push to 500MB but should still compress. A 20MB GIF takes 5-10 seconds to load in chat, and most people will scroll past before it finishes.
Pro tip: Discord converts all uploaded GIFs to a compressed internal format. If you upload a beautifully optimized 1MB GIF, Discord may recompress it and add artifacts. Compress to 2-5MB total — this gives Discord’s recompressor enough data to work with without introducing visible quality loss.
Twitter / X
X’s GIF limit is 15MB, not the 5MB you will see quoted everywhere — that figure is for still images. The mix-up is widespread enough that it is worth double-checking any guide you read on this.
The fix:
- Resize to 600px width. X’s feed displays GIFs at 500-600px wide on most devices.
- Use Maximum mode at level 70-90. X auto-loops GIFs, so 10fps looks perfectly smooth in a scrolling feed.
- Type 5 into the Any size box in the compressor. You are allowed 15MB, but a 2-5MB source survives X’s MP4 re-encoding with far better quality.
- If your GIF started at 15MB, resize first (to 600px), then compress. Together these two steps reduce a 15MB file to ~2MB.
Pro tip: X supports GIFs up to 15 seconds. If your GIF is under 3 seconds and still over 5MB, you have a resolution or colour problem — not a length problem.
Email (Gmail, Outlook, Apple Mail)
Email is the hardest platform for GIFs. Gmail clips messages over 102KB — and that includes your HTML markup, text, and every embedded image. A single 500KB GIF plus your email template can easily exceed 102KB.
The fix:
- Keep GIFs under 200KB for inline display. If your email has multiple GIFs, keep the combined total under 500KB.
- Use Quality mode at level 30-50. Aggressive compression on email GIFs that contain text will make the text unreadable.
- Reduce colors to 32-64 palette entries. Email GIFs are usually simple — logos, buttons, product showcases — that look fine with limited colors.
- Keep animations under 3 seconds. Trim longer animations before compressing.
- Test in Litmus or Email on Acid before sending to your list. Rendering varies dramatically across email clients.
Pro tip: If your email GIF is for a marketing campaign, consider hosting it on a CDN and linking to it rather than embedding it inline. This keeps your email body under 102KB and allows a larger, higher-quality GIF.
Instagram does not support GIF uploads natively. When you upload a GIF, Instagram silently converts it to a video (MP4). The looping behavior is lost, and the file is re-encoded at Instagram’s quality settings.
The fix: Convert your GIF to MP4 before uploading to Instagram. Use the GIF to MP4 converter to create a clean MP4 that Instagram will not need to recompress as aggressively. Target 1080x1080 for feed posts, 1080x1920 for Stories.
WhatsApp and Telegram
WhatsApp (16MB) and Telegram (2GB) have generous limits, but mobile data matters. A 14MB GIF sent over WhatsApp will take 5-15 seconds to deliver on a typical mobile connection — and the recipient is paying for that data.
Compress to 2-5MB for WhatsApp even when you are under the limit. For Telegram, 5-10MB is reasonable given the platform’s focus on high-quality media sharing.
The Nuclear Option: Format Conversion
If after resizing and compressing your GIF is still too large, the format itself is the problem:
- Convert to WebP: 60-90% smaller. Full color, smooth gradients, alpha transparency. WebP is universally supported in browsers but limited on social platforms.
- Convert to MP4: 80-95% smaller. Best for long animations and screen recordings. Twitter, Instagram, and Facebook all convert GIFs to video internally anyway — you are just doing it ahead of time with control over quality.
Related Tools
References & Further Reading
- Discord File Upload Limits — official Discord documentation on file size limits
- Twitter Media Best Practices — Twitter’s official media upload guidelines
- Gmail Attachment Limits — Google’s documentation on Gmail file size restrictions