Compress GIF for Twitter / X

Shrink animated GIFs for X. The GIF limit is 15MB — the 5MB number everyone quotes is for still images — and you can target any size below that. Pre-compress to soften X's MP4 re-encoding.

Drop your GIF here

Click anywhere in this box to pick a file, or press Ctrl+V to paste one.

Twitter GIF Size Rules — What Actually Works

X's GIF rules are deceptively simple but subtly different from other platforms — and the number most guides give is simply wrong. X accepts GIFs up to 15MB; the widely quoted 5MB is its still image limit. The second thing to understand is that X does not serve your GIF at all: it converts every GIF to MP4 on upload, so what people see is video rather than your file. That makes the compression strategy here different from Discord or email.

PlatformMax GIF sizeServes asKey constraint
X — GIF15MBMP416:9 or 1:1 ratio. Desktop first.
X — still image5MBas-isThis is where the 5MB figure comes from
Twitter Ads1MBMP4Strictest. Maximum mode required.

The Twitter MP4 Problem — and How to Beat It

Twitter converts every GIF to MP4 using server-side re-encoding. This is not optional — it happens to every GIF, every time. The problem: Twitter's re-encoding is aggressive and often produces visibly degraded results, especially on GIFs with text, fine details, or smooth gradients.

The counterintuitive solution: upload a smaller, pre-compressed GIF. When Twitter receives a compact, optimized GIF, the re-encoder has less work to do and produces a cleaner MP4. When it receives a bloated 15MB GIF that barely squeaks under the limit, the re-encoder must work aggressively, producing visible artifacts.

Think of it like sending a photo to a printer. Send a clean, properly sized image and you get a sharp print. Send a pixelated mess and the printer's scaling makes it worse.

Step-by-Step: Compress a GIF for Twitter

  1. 1. Start with the right dimensions. Resize to 600px width. Twitter displays GIFs at this width in-feed. Anything larger wastes data and makes the re-encoder work harder.
  2. 2. Set your target size. Type 5 into the Any size box and press Go. You are allowed 15MB, but a 2-5MB source is what survives X's MP4 re-encoding with its quality intact.
  3. 3. Choose your mode based on content. Quality mode for photos and gradients (20-35% savings). Balanced mode for general content (35-55% savings). Maximum mode for memes and simple graphics (50-70% savings).
  4. 4. Test before posting. Use the live comparison slider to verify quality. Pay special attention to text readability — Twitter's re-encoding is hardest on small text.
  5. 5. Upload the compressed GIF. Twitter will re-encode it, but because the source is compact and clean, the result will be much closer to your original quality.

Best Aspect Ratios for Twitter GIFs

Twitter crops or letterboxes GIFs to fit its feed layout. Using the right aspect ratio prevents unexpected cropping:

Feed post (16:9)

1200x675px

Most common. No cropping.

Square (1:1)

800x800px

Works everywhere. Safe choice.

Vertical (9:16)

1080x1920px

Video tab. May be cropped in feed.

Twitter GIF Compression Cheat Sheet

GIF typeTarget sizeModeTip
Reaction / memeunder 2MBBalanced 60-80Resize to 500px first. These GIFs live fast.
Product showcaseunder 3MBQuality 40-60Preserve detail. Avoid gradients.
Text-heavy infographicunder 3MBQuality 30-50Text readability is priority. Do not over-compress.
Twitter Ad creativeunder 1MBMaximum 70-90Consider converting to MP4 directly.