MiniPx
Blog
🔒 Images never leave your browser

Compress images for Twitter / X

Optimal sizes for tweets, headers, and profile photos on Twitter/X. Compress to avoid blurry previews and slow loading.

🐦
Open Twitter Image Optimizer →

Recommended: JPEG format, Smart preset, 1600px max width

Compress Images for Twitter/X — Free, Fast & Private

Twitter (now X) applies aggressive in-feed compression to every image. Photos that look crisp on your phone can turn into a blocky mess after posting. The trick is to upload images at the exact dimensions Twitter expects, in the right format, at a controlled file size. That way Twitter's compression has less work to do.

MiniPx handles everything in your browser — no uploads to third-party servers. Drop your image in, set the right width, pick Smart compression, and you're done.

Twitter/X image dimensions guide

Image typeDimensionsMax sizeFormat
In-feed image1600 x 900px5MBJPEG or PNG
Header / banner1500 x 500px5MBJPEG or PNG
Profile photo400 x 400px2MBJPEG or PNG
Card image (OG)1200 x 628px5MBJPEG

For profile photos, see our passport-size photo resizer to crop a perfect square. For tips across all platforms, check compress images for social media.

JPEG vs PNG on Twitter

Twitter handles JPEG and PNG differently. JPEGs get recompressed (sometimes heavily). PNGs under 900px wide are kept as-is, but larger PNGs get converted to JPEG. If your image has text, sharp edges, or flat colours, try uploading a PNG under 900px — Twitter will preserve it pixel-perfect. For photographs, JPEG at 1600x900 compressed to 300-500KB gives the best results.

Twitter header optimization

The Twitter header banner is 1500x500px (3:1 ratio). It displays differently on mobile — the top and bottom edges get cropped. Keep text and logos in the centre 60% vertically. Compress your header to under 300KB in JPEG for fast loading.

Why tweets with images get more engagement

Tweets with images get 150% more retweets than text-only tweets. But a blurry or poorly cropped image hurts more than it helps. Upload at the exact 16:9 ratio (1600x900), compress to 300-500KB, and your images will look sharp in the timeline. MiniPx makes this a 30-second process.

How it works

  1. Choose your Twitter image type: In-feed post (1600x900), header (1500x500), or profile photo (400x400).
  2. Drop your image into MiniPx: Set max width to 1600px for posts, 1500px for headers, or 400px for profile photos.
  3. Compress with Smart preset: JPEG with Smart compression keeps detail while hitting the 300-500KB sweet spot.
  4. Download and tweet: Save the compressed image and attach it to your tweet. No more blurry previews.

Frequently asked questions

What is the best image size for Twitter posts?
1600x900px (16:9 ratio) in JPEG format. Compress to 300-500KB. This is the native in-feed display ratio — Twitter won't crop it, and it fills the timeline card completely.
Does Twitter compress uploaded images?
Yes, aggressively. Twitter recompresses JPEGs and converts large PNGs to JPEG. Pre-compressing to 300-500KB at the correct dimensions minimizes the damage Twitter's compression does to your image.
What size is a Twitter header?
1500x500px (3:1 ratio). The top and bottom edges get cropped on mobile, so keep important content in the centre. Compress to under 300KB in JPEG format.
JPEG or PNG for Twitter?
JPEG for photos. PNG for graphics with text or sharp edges — but only if under 900px wide (Twitter preserves small PNGs). Larger PNGs get converted to JPEG anyway.
What is the Twitter profile picture size?
400x400px, displayed as a circle. JPEG or PNG, under 2MB. Compress to under 100KB for instant loading. Keep your face or logo centred — the corners get clipped.