CompressImg

Compress Image for Twitter / X

Reduce photo size before tweeting — avoid quality loss from Twitter's re-compression

Drop image here or click to upload

JPG, PNG, WebP, HEIC — max 20MB

⚡ Compressed in seconds·🔒 Images never leave your device·✓ Free, no sign-up
80%
Smaller fileBetter quality

Does Twitter Compress Images?

Yes — Twitter/X compresses every image you tweet. When you attach a photo to a tweet, Twitter converts it to WebP and reduces the file to its 300–500KB delivery target — regardless of the original size or format. A crisp 8MP smartphone photo can emerge noticeably softer on the timeline, with visible compression artifacts in gradients, fine detail, and text areas.

Quick answer: Does Twitter compress images?

  • Every tweet: Yes — Twitter converts all images to WebP and compresses to 300–500KB
  • Quality impact: An 8MP photo can emerge noticeably softer with visible artifacts in gradients and text
  • Pre-compression fix: Yes — compress to quality 80 first to minimize Twitter's double-compression

Pre-compressing at quality 80 before uploading gives Twitter a file already near its delivery target. Twitter then applies minimal additional compression, preserving more of the original detail. This technique is used by photographers, designers, and content creators who need images to look sharp on the tweet timeline.

How to Compress Images for Twitter / X — 3 Simple Steps

  1. 1

    Upload your image

    Click the upload area, drag and drop, or paste from clipboard (Ctrl+V). Supports JPG, PNG, and WebP files up to 20MB. Your image stays on your device — nothing is sent to any server.

  2. 2

    Set quality to 80 for Twitter

    Quality 80 is the recommended setting for Twitter image uploads. It reduces file size by 60–70% while preserving enough detail to survive Twitter's re-compression with minimal additional quality loss. For PNG graphics with text, quality 85 preserves sharper edges.

  3. 3

    Download and attach to tweet

    The compressed file downloads directly to your device. Attach it to your tweet as usual. The pre-optimized file gives Twitter's algorithm less work, producing a sharper image on the timeline than uploading an uncompressed original.

Twitter / X Image Size Specifications 2025

Twitter supports different image placements, each with specific recommended dimensions. Uploading at the correct size prevents Twitter from cropping or downscaling your image, which preserves quality at the displayed resolution.

PlacementRecommended SizeAspect RatioTarget File Size
Tweet Image1200 × 675 px16:9300–700 KB
Profile Photo400 × 400 px1:1 (circular crop)Under 100 KB
Header / Banner1500 × 500 px3:1200–600 KB
Single Image (tall)1200 × 1200 px1:1300–700 KB
4-image grid (each)1200 × 675 px16:9200–500 KB each

Twitter enforces a maximum file size of 5MB for images in tweets. PNG files above 5MB are rejected. Use the Resize Image tool to adjust dimensions before compressing if your original is very large.

How Twitter Compresses Your Images

Twitter converts all uploaded images to WebP format for delivery in modern browsers, and JPG as a fallback for older browsers. This conversion happens server-side regardless of what format you upload. Twitter targets a specific file size for each image type — tweet images are typically delivered at 300–500KB.

When you upload a large uncompressed JPG (3–8MB), Twitter applies heavy lossy compression to reach its 300–500KB target — introducing visible banding in sky areas, ringing around text, and softness in fine-detail regions. When you upload a pre-compressed 500KB JPG, Twitter applies little or no additional compression since the file is already at its target size. The resulting image on the timeline retains significantly more of the original sharpness. This is why professional photographers and visual artists pre-compress images before tweeting rather than uploading camera originals directly.

Best Image Format for Twitter / X

JPG — Best for Photos

JPG is the best format for photographs on Twitter. Twitter converts images to WebP for delivery, so uploading JPG or PNG produces similar results. JPG is smaller than PNG at equivalent quality for photos, making it faster to upload and giving Twitter's algorithm a better starting file.

PNG — Best for Graphics

PNG is recommended for screenshots, infographics, memes, and graphics with text or flat colors. PNG preserves hard edges and sharp text that JPG compression would blur. Twitter's WebP conversion of PNG input generally preserves more graphic detail than the same image uploaded as JPG.

GIF — For Animations

Twitter supports animated GIFs up to 15MB. GIF uploads are converted to MP4 video for delivery, which is why the "GIF" badge appears on animated tweets. For still images, use JPG or PNG rather than GIF — GIF is limited to 256 colors and produces poor quality for photographs.

How Twitter / X Compresses Images — Inline Tweets, Headers, and Cards Behave Differently

Twitter applies different compression depending on how and where an image appears. A photo uploaded directly to a tweet, a header banner, and a link preview card are all processed differently — understanding these differences helps you optimize for each use case.

Inline tweet images (photo uploads)

Twitter converts JPG and PNG uploads to WebP for delivery on modern browsers. This means your image goes through two lossy compression steps: your original JPG, then WebP conversion. Pre-compressing at quality 80 before uploading minimizes the quality degradation from Twitter's internal WebP conversion. Twitter displays up to 4 images in a single tweet, each cropped to a preview that expands on click.

Twitter header / banner image

Header images are displayed at 1500×500px (3:1 ratio) on desktop and scaled on mobile. Twitter applies moderate compression — less aggressive than inline photos. Upload at exactly 1500×500px, quality 80–85. The bottom-left corner is obscured by your profile picture, so keep key content in the center and right portions of the header.

Link preview cards (shared URLs)

When you share a URL, Twitter fetches the Open Graph image from that URL and displays it as a card. Twitter compresses this OG image independently — it is not the same as uploading a photo. To optimize link cards, ensure your OG images are already under 1MB before Twitter fetches them, and use the 1200×630px (1.91:1) format for Summary Large Image cards.

Direct message images

Images sent in Twitter DMs are compressed more aggressively than timeline images. Pre-compressing to 500–700KB before sending via DM reduces the total compression applied. For sensitive documents or high-detail images shared via DM, consider sending as a file attachment (less compression) rather than a photo message.

Privacy — Your Images Never Leave Your Device

All compression in this tool runs entirely inside your browser using JavaScript. When you select an image to compress for Twitter, no file is transmitted to any server. The image is processed locally on your computer or phone, and the compressed result downloads directly to your device. This makes the tool safe for unreleased photography, brand assets, promotional graphics, and personal photos. No account is required, there is no usage limit, and there is no watermark on any compressed output. The tool is completely free for any number of images.

Need to create a Twitter/X header first?

Design a 1500×500px Twitter header with templates and custom text — then compress it here before uploading.

Twitter Header Maker →

Frequently Asked Questions