X Sets A Different Ceiling For Every Image Slot.
Find Yours Before You Compress Anything.
βHow big can a Twitter image be?β has at least three answers, because a profile photo, a banner and a picture attached to a post are three separate uploads with three separate rule sets. Compressing against the wrong one is how people end up with a rejected banner or a 4 MB post that loads as a grey box for everyone on mobile.
Below, each figure is tied to the X page it came from. The encoder itself runs in this tab and never sees a server, which matters most for the one upload you would least like copied somewhere β a face on a profile picture.
The Three Slots, Side By Side
Profile photo
- Size
- 400 x 400 px recommended
- Formats
- Xβs troubleshooting page names JPEG, GIF or PNG
- Weight
- under 2 MB
X displays this as a small circular avatar, so frame the face centrally: anything you put in the corners is likely to be lost in the mask.
help.x.com β Help with uploading a profile photo Β· checked October 2026
Header / banner
- Size
- 1500 x 500 px recommended
- Formats
- No container list on the help page read for this figure
- Weight
- No weight figure published by X for the banner
X publishes dimensions here, not a ceiling in bytes, so anything below 2 MB is our advice rather than their rule.
help.x.com β How to customize your profile Β· checked October 2026
Image attached to a post
- Size
- No pixel minimum listed for standard images
- Formats
- JPG, PNG, GIF, WEBP
- Weight
- under 5 MB (animated GIF 15 MB)
An in-stream card is not displayed at full size, so weight beyond what the preview needs mostly costs the few people who tap through to look.
docs.x.com β media upload best practices Β· checked October 2026
Where X publishes no figure, this page says so instead of borrowing a number from a third-party size guide.
If You Run Ads, That Spec Sheet Is Stricter
Xβs creative ad specifications recommend PNG and JPEG, refuse BMP and TIFF outright, cap the file at 5 MB, and warn that a GIF you upload will render as a still image. The last one surprises people: an animation that worked in the feed can arrive in an ad slot as a single frame, and no amount of compression will bring the motion back. Organic posts are governed by the media-upload list; paid placements are governed by this page.
Five Megabytes Is The Door, Not The Room
A 4.8 MB image sails through the upload check and then behaves badly in the feed: the card shown while scrolling is a cropped, sized-down version, and someone on a poor connection may move on before the file paints. Our recommendation, again clearly ours: land a single in-post image between roughly 200 and 500 KB, and cut an avatar down toward 100 KB.
Threads with four or more images are where this pays back hardest, since the weight multiplies across everything someone scrolls through to reach the point you were making.
Which Mode To Reach For
Quality Mode (10β100 % slider)
Right for a banner or an avatar, where nothing in Xβs rules mentions bytes and you simply want the best-looking file that stays light. Drag down until the weight reads sensibly, then stop.
Target KB Mode (typed ceiling)
Right when you want a number you can defend β a post image kept under 500 KB, an attachment small enough to survive a slow connection. Pick the ceiling and the search does the iteration.
Either way the workflow is short: choose the container button (JPEG for photography, PNG for flat graphics and screenshots of text, WebP if you are re-hosting the asset rather than posting it), drop files on the panel β the zone reads βDrop images here or click to uploadβ, and takes up to 50 at once β then hit β‘ Compress All and download each result or the ZIP. Quick Presets is for Shopify, Etsy, Amazon, Instagram, Gov 20KB and 50KB, so for X you type the number yourself.
Screenshots Of Text Deserve A Second Thought
- A capture from a retina display can start out several thousand pixels wide. Readable in the full view, wasted in a card β reduce the canvas before you reduce the quality.
- Compression cannot undo blur, and this tool is not a sharpening filter; it changes weight, nothing else.
- Against a hard ceiling, lossy encoding is a trade: you get the finest result that still fits under your number, and if the original was already lighter than that number, it comes back untouched.
- Look at the output at 100 % before posting a chart with axis labels β small grey type is the first casualty of any budget.
Not On The Menu Here
Resizing to 1500 x 500, cropping a landscape into the square your avatar becomes, lifting a background out of a headshot β none of those are things this pageβs tool does. Do the framing in an image editor, keep the longest side under 4096 px so nothing is silently trimmed on entry, then use the compressor for the byte count.
Quick Answers For X Uploads
What is the file-size limit for an image in an X post?
Xβs own developer documentation for media upload lists static images as JPG, PNG, GIF or WEBP under 5 MB, with animated GIFs allowed up to 15 MB. That is the ceiling enforced when media is attached, not a size you should be aiming for in a scrolling timeline.
How big should my X profile photo and banner be?
Xβs help pages recommend 400 x 400 pixels for the profile photo and 1500 x 500 for the header, and when a profile photo upload misbehaves the help centre points to JPEG, GIF or PNG files under 2 MB. Those are the numbers on Xβs own pages, checked October 2026.
Is WebP or AVIF better for a post on X?
WebP is on Xβs published accepted-format list for media; AVIF is not, so treat it as unsupported for an upload and let the tool write JPEG or PNG. Save AVIF for images you host yourself, where a rejected format is your choice rather than a failed post.
My screenshot is 4 MB and mostly text β where does the weight go?
Usually into a very wide canvas and a lossy container fighting sharp edges. Text, hard colour boundaries and dithered backgrounds are the expensive parts of a JPEG. A flat graphic of that kind often ends up no larger, and sometimes smaller, as a PNG than as a strained JPEG.
Does using this compressor send my image anywhere?
No. The tab decodes and re-encodes locally, so there is no upload step, no account, no watermark and no server copy of whatever is in the picture β including anything you would never want attached to a public profile.