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.
| Platform | Max GIF size | Serves as | Key constraint |
|---|---|---|---|
| Twitter Web | 5MB | MP4 | 16:9 or 1:1 ratio. Desktop first. |
| Twitter Mobile | 3MB | MP4 | Stricter enforcement. The real limit. |
| Twitter Ads | 1MB | MP4 | Strictest. 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. 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. Click the < 5MB Twitter preset. This targets the web limit. For guaranteed mobile compatibility, click it again and aim for under 3MB.
- 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. 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. 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 type | Target size | Mode | Tip |
|---|---|---|---|
| Reaction / meme | under 2MB | Balanced 60-80 | Resize to 500px first. These GIFs live fast. |
| Product showcase | under 3MB | Quality 40-60 | Preserve detail. Avoid gradients. |
| Text-heavy infographic | under 3MB | Quality 30-50 | Text readability is priority. Do not over-compress. |
| Twitter Ad creative | under 1MB | Maximum 70-90 | Consider converting to MP4 directly. |
Related: Compress for Discord · Compress for Email · Platform Size Guide · GIF to MP4