August 5, 2025

GIF Compression for Social Media — Discord, Twitter & More

JC

James Chen

Web Performance Engineer

Platform-by-platform guide to GIF compression for social media: Discord 20MB (not the 8MB most guides still say), X 15MB for GIFs, Instagram rules, and how to hit every limit with one tool.

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

PlatformMax GIF SizeWhy This Limit ExistsWhat Happens If You Exceed It
Discord (free)20MB (was 8MB)Server storage costs, message delivery speedUpload blocked. Smaller file required.
Discord (Nitro)500MBPremium tier benefitUpload blocked above 500MB
X / Twitter (GIF)15MBBandwidth costs at X’s scaleUpload rejected with error message
X / Twitter (still image)5MBBandwidth costsThis is where the widely quoted 5MB figure comes from
InstagramN/APlatform auto-converts GIFs to video on uploadGIF is silently converted, loses looping
WhatsApp16MBMessage delivery over mobile networksUpload blocked above 16MB
Telegram2GBNo practical limit for GIFsN/A
Slack1GBEnterprise file sharingUnder 5MB recommended for inline preview
Reddit20MBCommunity content sharingUpload blocked above 20MB
Facebook25MBSocial media standardMay auto-convert to video
Gmail inline102KB (entire message)Prevent inbox bloatMessage clipped with “View entire message” link
Outlook20MB attachmentCorporate email infrastructureAttachment 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:

  1. 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.
  2. 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.
  3. Preview before sharing. The comparison slider shows exactly what your audience will see. Check for color banding, frame stutter, and text readability.
  4. 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

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.

References & Further Reading

Need to actually compress a GIF? Use our free GIF compressor →