Compress GIF for Twitter / X

Shrink animated GIFs for Twitter. Hit the 5MB web and 3MB mobile limits with platform-specific presets. Pre-compress to avoid Twitter's aggressive MP4 re-encoding that degrades quality.

Drop your GIF here

Click to browse, paste from clipboard, or enter a URL

Max 100MB

Twitter GIF Size Rules — What Actually Works

Twitter's GIF rules are deceptively simple but subtly different from other platforms. The key thing to understand is that Twitter does not actually serve your GIF — it converts every GIF to MP4 on upload. Your "compressed GIF" is received, re-encoded, and served as video. This means your compression strategy on Twitter is fundamentally different from Discord or email.

PlatformMax GIF sizeServes asKey constraint
Twitter Web5MBMP416:9 or 1:1 ratio. Desktop first.
Twitter Mobile3MBMP4Stricter enforcement. The real limit.
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. Click the < 5MB Twitter preset. This targets the web limit. For guaranteed mobile compatibility, click it again and aim for under 3MB.
  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.