X Image Size 2026: What X Publishes and What Guides Guess

X (Twitter) image sizes for posts, multi-image posts, GIFs, link cards, profile photos and headers, with the limits X actually documents and their sources.

An X post with a tall 4:5 photo marked 1080×1350 next to a wide 16:9 photo marked 1600×900, and a profile header marked 1500×500

Guide · By PostBoost team · · Markdown

Short answer: use 1080×1350 (4:5) for a portrait image on X or 1600×900 (16:9) for a landscape one, and keep each file under 5 MB. X doesn't publish a recommended pixel size for normal posts. What it does document are file limits: 5 MB per image in JPG, PNG, GIF or WEBP, up to 4 images per post, and 15 MB for an animated GIF. On shape, X said in 2021 that single images from 2:1 (wide) to 3:4 (tall) show uncropped in the timeline. Crop any photo to these sizes in the free image resizer.

X image sizes at a glance

Placement Size (px) Ratio Where the number comes from
Single image, portrait 1080×1350 4:5 Inside the 2:1 to 3:4 range X shows whole
Single image, tallest uncropped 1080×1440 3:4 X's 2021 announcement; the web crops taller images to 3:4
Single image, landscape 1600×900 16:9 Common practice; inside the range
Single image, square 1080×1080 1:1 Inside the range
2 to 4 images same shape for all cropped to a grid X publishes no grid sizes
Animated GIF at most 1280×1080 any X media docs: 15 MB, 350 frames
Link card image 1200×628 1.91:1 (card shows about 2:1) Quoted from X's card docs; not confirmed on an official page
Profile photo 400×400 1:1 X Help: JPG, GIF or PNG, 2 MB
Header (banner) 1500×500 3:1 X Help
Image ad 1200×1200 or 1200×628 1:1 or 1.91:1 X Business ad specs

Most X size guides give a single "post size", and they disagree: 1200×675, 1600×900 and 1080×1080 all appear. None of them comes from X. The only pixel sizes X publishes for the feed are its ad specs, 1200×1200 and 1200×628, and those are for paid image ads. For normal posts the rules that matter are the file limits and the shapes X shows without cropping.

What X shows uncropped

Until 2021, X cropped every image that wasn't 16:9 to a fixed preview frame. In May 2021 it switched to showing single images in full on iOS and Android; its support account said that "Images with 2:1 and 3:4 aspect ratios will show in full" (Social Media Today, Engadget). The web followed in November 2021, with portrait images shown up to 3:4 and taller ones cropped to 3:4 in the timeline (GIGAZINE). We found no newer statement from X on how it crops.

In practice:

  • Any shape from 2:1 to 3:4 shows whole. That covers 16:9, 4:3, 1:1 and 4:5, the shapes most cameras and design templates use.
  • 3:4 is the tallest safe shape. A 1080×1440 image takes the most room in the timeline. A 9:16 phone screenshot is taller than that, so expect it to be cropped in the timeline (the web crops it to 3:4); opening it shows the whole image.
  • Wider than 2:1 gets trimmed at the sides. Panoramas and wide banners lose their edges in the timeline.

Pick 1080×1350 if the same image also goes to Instagram, LinkedIn or Facebook: 4:5 shows uncropped in all three feeds and sits inside X's range. Pick 1600×900 for charts, slides and screenshots made in a 16:9 frame, where cropping to portrait would cut off text.

Posts with 2 to 4 images

X allows up to 4 photos in one post, and a multi-image post is shown as a grid, with each image cropped to fit its tile. X doesn't publish the tile shapes, and third-party guides disagree on them, especially for 4 images. What holds either way: give all images the same shape, keep faces and text near the centre of each, and put the image that matters most first. Tapping an image opens it whole.

GIFs, file types and file size

X's media upload documentation lists these limits, the same for default and Premium accounts:

  • Images: JPG, PNG, GIF and WEBP, up to 5 MB each.
  • Animated GIFs: up to 15 MB, at most 1280×1080 pixels and 350 frames. X adds that a GIF "may fail during Post creation even if it is within the file size limit", so trim long GIFs or post them as a video.
  • Per post: "up to 4 photos, 1 animated GIF or 1 video". You can't combine them.
  • Alt text: up to 1,000 characters per image (media metadata docs).

A link card's image comes from the page you share, not from an image you attach: X reads the page's twitter:image tag and falls back to og:image, as the Cards markup docs describe. If you attach a photo, X shows the photo instead of a card. The large card (summary_large_image) is quoted across guides as 2:1, at least 300×157 and at most 4096×4096 pixels, under 5 MB. X's developer pages block automated reads, so we couldn't confirm those figures on an official page. A 1200×628 image works on X and is within a few pixels of what LinkedIn (1200×627) and Facebook (1200×630) ask for; if X trims it to an exact 2:1, it loses 28 pixels in total, so keep text away from the top and bottom edges. Check which image and tags X will read with the free link preview checker.

Profile photo and header

The X Help Center recommends 400×400 pixels for the profile photo and 1500×500 for the header, which X also calls the banner. Profile photos can be JPG, GIF or PNG up to 2 MB; animated GIFs aren't supported for either image. Keep the subject of the profile photo in the middle, and keep text and logos in the header away from its top and bottom edges, which can be cut off on some screens.

Crop a photo for X

Upload the photo to the image resizer, pick the X size or type a custom one, and drag the crop box; it runs in your browser. The same crop is a free API call that needs no account, so a script or an AI agent can work out the box before it resizes:

curl -X POST https://postboost.co/app/api/tools/social-media-image-sizes/crop \
  -H 'Content-Type: application/json' \
  -d '{"width":4032,"height":3024,"network":"x","format":"in-feed-image"}'

For a 4032×3024 photo (4:3) and X's 1600×900 in-feed size, the response gives crop {"x":0,"y":378,"width":4032,"height":2268} and an output of 1600×900 with upscaled false: 378 pixels come off the top and the bottom. Send "target_width":1080,"target_height":1350 instead for a portrait. In an AI assistant connected to PostBoost's free tools MCP server (https://postboost.co/mcp/tools) the tool is calculate-crop; fields and SDK examples are in the crop API docs. To see how a caption and image will look on X before you post, use the post preview.

Schedule an X image post in PostBoost

Create a post, select your X account, add the images and the text, and check the X preview. What PostBoost does with the images:

  • Size. Every uploaded photo wider than 1080 pixels is scaled down to 1080 wide, never up, and formats other than JPEG are saved as JPEG; GIFs are kept as they are. A 1080×1350 upload keeps its size; a 1600×900 one reaches X as 1080×608, the same 16:9 shape.
  • Count. PostBoost allows up to 4 photos, 1 video or 1 GIF in an X post and doesn't let you mix them. If you add more, the editor shows "Maximum of 4 photos allowed." and you can't schedule until you remove one.
  • Shape and GIF limits. PostBoost doesn't check the shape of an X image or X's GIF limits (1280×1080, 350 frames). A GIF that breaks them is rejected by X when the post publishes, and the post shows as failed. Check GIFs before you schedule.
  • Alt text. PostBoost sends each image's alt text to X. If an image has none, the editor suggests adding it, with an Add alt text button; the free alt text generator drafts one.

The same post can go to other networks with their own versions; the image size guide for every network lists where the sizes differ, and the X character limit guide covers the text. The post editor page covers previews and per-network checks. New to PostBoost? Create a free account.

Do this in PostBoost

Free tools for this guide

FAQ

What is the best image size for an X post in 2026?

1080×1350 (4:5) for a portrait or 1600×900 (16:9) for a landscape. X publishes no recommended pixel size for normal posts; it said in 2021 that images with 2:1 and 3:4 aspect ratios show in full in the timeline, and both sizes sit inside that range. Keep the file under 5 MB.

What is the maximum image file size on X?

5 MB for a photo and 15 MB for an animated GIF, per X's media upload documentation, for default and Premium accounts alike. An animated GIF must also be at most 1280×1080 pixels and 350 frames.

Does X crop images?

A single image between 2:1 (wide) and 3:4 (tall) shows in full. On the web, X said portrait images are shown up to 3:4, so a taller image is cropped in the timeline and shown whole when someone opens it. Posts with 2 to 4 images are cropped into a grid, and X publishes no grid sizes.

How many images can you post on X?

Up to 4 photos, or 1 animated GIF, or 1 video per post. You can't mix photos, a GIF and a video in one post. PostBoost applies the same limits to X posts and shows an error in the editor before you schedule.

What size is the X profile picture and header?

X's help center recommends 400×400 pixels for the profile photo (JPG, GIF or PNG, up to 2 MB, no animated GIFs) and 1500×500 for the header, also called the banner.

What size should a link card image be on X?

X's large summary card is usually quoted at 2:1, at least 300×157 and at most 4096×4096 pixels, under 5 MB, but we could not load the official page to confirm it. A 1200×628 og:image or twitter:image works on X, LinkedIn and Facebook; keep text away from the top and bottom edges.

Sources

Related guides

Try PostBoost free

API, webhooks and MCP on every plan, including Free. No credit card required.