X (Twitter) image sizes for posts, profile photos and headers
When you attach a single image to a post on X, it is shown in full without cropping if its aspect ratio is between 2:1 and 3:4. Files can be up to 5MB in JPEG, PNG or GIF. X recommends 400×400 pixels for profile photos and 1500×500 pixels for header images.
One post image: 2:1 to 3:4, up to 5MBProfile 400×400Header 1500×500
Before you start:Checked against X's official Help Center (Japanese and English) on December 4, 2026. X's specifications can change.
With Ritomira, iPhone HEIC photos are converted to JPEG when you schedule
Key points
- X does not publish a recommended pixel size for post images. Only the ratio (2:1 to 3:4) and file size (5MB) are defined
- Profile photos can be up to 2MB. About 60 pixels at the top and bottom of a header may be hidden on some screens
- Without X Premium, videos can be up to 140 seconds and 512MB
What you can do and what you need
What you can do after reading:Prepare images that fit posts, profile photos and headers, and avoid files that are too large or get their edges cut off.
Scope & requirements:Checked against X's official Help Center (Japanese and English) on December 4, 2026. X's specifications can change.
With Ritomira, iPhone HEIC photos are converted to JPEG when you schedule
On this page
Post images
| Item | X's rule |
|---|---|
| Formats | JPEG, PNG and GIF (BMP, TIFF and other formats are not accepted) |
| File size | Images up to 5MB. GIFs up to 5MB from the mobile apps and 15MB from x.com |
| Ratio for a single image | Between 2:1 and 3:4, the image is shown in full without cropping |
| Character count | Photos and GIFs do not count toward the character limit |
Choosing the pixel size
X does not say how many pixels a post image should be. It defines only the ratio and the maximum file size, and the displayed size adjusts to the screen automatically.
The reliable approach is to pick the ratio first and make the image reasonably large while staying under 5MB. For example (these are calculated from the ratios and are not X's recommendations):
| Ratio | Orientation | Example size |
|---|---|---|
| 2:1 | Landscape (widest in the range) | 1200×600 |
| 16:9 | Landscape (phone or computer screenshots) | 1200×675 |
| 1:1 | Square | 1080×1080 |
| 3:4 | Portrait (tallest in the range) | 1080×1440 |
Two or more images
X's Help Center does not explain how multiple images are cropped. Check in the composer preview that the important part is not cut off. A post can have only one GIF, and a GIF cannot be combined with other images.
Profile photos and headers
| Item | Profile photo | Header image |
|---|---|---|
| Recommended size | 400×400 pixels | 1500×500 pixels |
| Formats | JPEG, GIF, PNG | JPEG, GIF, PNG |
| Maximum file size | 2MB | Not stated |
Videos
| Account | Length | File size |
|---|---|---|
| Not subscribed to X Premium | Up to 140 seconds | Up to 512MB |
| X Premium and similar plans (1080p) | Under 4 hours | Up to 16GB |
| X Premium and similar plans (720p) | 2 to under 4 hours | Up to 16GB |
When something goes wrong
- You cannot attach an image: check that it is under 5MB and is JPEG, PNG or GIF. Export iPhone photos (HEIC) as JPEG
- The edges are cut off: for a single image, change the ratio to between 2:1 and 3:4. For several images, check in the preview that the important part is in the center
- Text in the header is cut off: leave about 60 pixels at the top and bottom and recreate it
Scheduling posts with images in Ritomira
Ritomira converts formats that X does not accept when you attach images in the scheduler. X is available on Ritomira's paid plans (on the free plan, you can try Bluesky and Mastodon).
- Sign up for Ritomira and connect your X account
- Attach images in the scheduler. HEIC photos from iPhone and AVIF images are converted to JPEG (up to 5MB) when the post is sent
- Pick the date and time and schedule. You can attach up to four images to one post
Frequently asked questions
What pixel size should images on X be?
X does not publish a recommended pixel size. For a single image, keep the ratio between 2:1 and 3:4 and make it reasonably large within 5MB. Common sizes are 1200×675 (16:9) for landscape and 1080×1080 for square.
Do images count toward the character limit?
No. Photos and GIFs do not count toward a post's character limit.
Why is the text in my header cut off?
About 60 pixels at the top and bottom of a header may not show on some screens or browsers. Keep text centered.
How long can a video be?
Without X Premium, up to 140 seconds and 512MB. With X Premium and similar plans, under 4 hours and up to 16GB at 1080p.
What we checked
We checked X's official Help Center pages "How to post photos or GIFs on X", "How to upload your profile photo" and "How to share and watch videos on X" in Japanese and English on December 4, 2026. The example sizes calculated from the ratios are not X's recommendations. Ritomira's image handling (format conversion and the four-image limit) is how Ritomira's scheduler works.