Compress an image for X (Twitter)
X takes photos up to 5MB and re-encodes whatever you post. Hand it a file that is already the right size and there is less left for it to change.
Keeps the resolution and re-saves the image at quality 75 to make the file smaller.
Drag and drop your images
or click to choose · Ctrl+V to paste (up to 30, 50MB each)
Metadata such as the GPS location is removed from every JPEG, PNG and WebP you get back.(Images already under the target size are stripped too. GIF, AVIF and BMP are containers this tool cannot rewrite, so one handed back without re-compression keeps its metadata — the result row says so. HEIC and HEIF cannot be rewritten either: when the JPEG written from one comes back no smaller than it was, your own file is what you get, metadata and all.)
The sizes X works with
X's photo limit is 5MB per image. For a post, 1600×900 (16:9) suits a landscape picture and 1080×1350 (4:5) a portrait one. A header is 1500×500 (3:1) and a profile picture 400×400 (1:1), and a profile picture may be no more than 2MB.
X re-encodes the photos you post and scales the large ones down. No tool can switch that off. What you control is what X starts from: a JPEG that is already close to the size X displays, and well under the limit, leaves the re-encode much less to throw away than a full-size phone photo does.
Preparing a photo for a post
Drop the photo in and turn on "Resize the image". Set Measure to "Longest side" and type 1600 — the default is "Maximum width", which leaves the long edge of a portrait photo above 1600px. Choose "Convert to JPEG" as the output format, switch the mode to "Target size" and enter 2000 to hold the file to about 2MB. The box takes kilobytes, from 10 to 10000, and counts a KB as 1024 bytes, so typing 2 would mean 2KB. If you would rather spend the whole allowance, 4882 is the largest number that stays under 5MB whether X counts a megabyte as 1,000,000 bytes or as 1,048,576.
Longest side only shrinks. A screenshot whose long edge is already under 1600px comes back at its own size, and its result row says so. For exact dimensions such as 1600×900 or 1500×500, crop to the ratio first: the cropper (/crop) has 16:9, 4:5, 3:1 and 1:1 buttons. The resizer (/resize) also has an "X timeline 1600×900" preset; tick "Add white borders to make it exactly 1600×900" under it and the saved file comes out at exactly 1600×900, with the picture fitted inside — never cropped, never enlarged.
A GIF is read here as a still image — its first frame — so this tool cannot make an animated GIF smaller and keep it moving. The GIF maker (/gif) can: open the GIF there and lower its width or its frames. To make a new animated GIF for a post, the GIF maker (/gif) turns up to 15 seconds of video, or a sequence of still images, into one.
What happens to your photo
Every image stays on your device. The compression runs in your browser through WebAssembly, so nothing is sent to a server, nothing is stored, and there is no queue to wait in. Closing the tab is all the cleanup there is.
Frequently asked questions
What is the image size limit on X (Twitter)?
5MB per photo, and 2MB for a profile picture. Pixel size is a different matter: for posts, 1600×900 landscape or 1080×1350 portrait is a sensible target, a header is 1500×500 and a profile picture 400×400.
Does X compress images?
Yes. Photos are re-encoded when they are posted, and large ones are scaled down. You cannot turn that off, but uploading a JPEG that is already near the size X shows, and well under 5MB, leaves less for X's re-encode to change.
Should I post a JPEG or a PNG?
JPEG for photographs. PNG for screenshots, text and flat illustrations, where JPEG leaves halos around sharp edges. PNG is lossless, so there is no quality to lower and the target size is skipped for it — a PNG comes back at whatever size it comes to. If a PNG is too large, turn on "Resize the image" and bring the dimensions down instead.
How do I make a header image 1500×500?
Crop the picture to 3:1 in the cropper (/crop), then bring the long edge down to 1500px — here, turn on "Resize the image", set Measure to "Longest side" and type 1500. This resize only ever shrinks, so a crop narrower than 1500px comes back at its own size; to enlarge it, use width × height in the resizer (/resize).
Is my photo uploaded anywhere?
No. The compression runs inside your browser and the photo never leaves your device. There is no account and no daily cap.
Other things you can compress for
- Compress an image to under 1MB
- Compress an image for Discord
- Compress photos so the email actually sends
- Compress a photo for Instagram
- Compress iPhone photos
- Compress images without uploading them anywhere
- Compress images in bulk, with no daily limit
- Compress photos on an Android phone
- Compress images on a Mac
- Compress images for a website or blog
- A TinyPNG alternative with no monthly quota
- Remove EXIF data from an image
- Compress an image without a target size
More free tools, also in your browser
- Background removal — Cut the background out with AI into a transparent PNG; brush to fix.
- Resize — By long edge, width×height, percentage or social preset. Up to 30 at once.
- Format conversion — AVIF, HEIC, SVG and BMP into PNG / JPEG / WebP / ICO. Up to 30 at once.
- Crop — Drag to keep what you want, with 1:1 and 16:9 locks.
- Rotate & flip — Quarter turns, mirroring and straightening, with the margins trimmed.
- AI upscaling — Enlarge a small or soft image 2× or 4× without the jagged edges.
- GIF maker — Turn a video (MP4, MOV, WebM) into a GIF, or stills into a flipbook.
- Text on image — Vertical Japanese, outlines and typefaces; drag it where you want. Memes too.
- Watermark — Lay text or a logo over a picture — position, opacity, angle, or tiled.
- Mosaic & face blur — Cover faces, addresses and plates. The unmasked picture is never sent.
- Grayscale & sepia — Monochrome, negative, sepia and threshold, adjusted as you watch.
- QR code generator — Static QR codes for links, text and Wi-Fi that never expire. Save a PNG or an SVG.