Skip to main content
Faviqo

X (Twitter) card image size

X shows a large image above your link only when the page has twitter:card set to summary_large_image. Without that tag you get a small card, even with a perfect image.

X's documentation asks for a 2:1 ratio, so we generate 1200×600. The documentation is old; check it against the live X docs before relying on edge cases.

Size and limits

Social image sizes
PlatformSizeRatioLimitsTag
X (Twitter) summary_large_image1200×6002:1min 300×157, max 5 MBtwitter:image
  • X (Twitter) summary_large_image: Needs <meta name="twitter:card" content="summary_large_image">. X crops other ratios, so keep key content centred; 1200×630 usually survives the crop. The cards docs are old, so recheck against the live X docs. Source, checked 2026-11-28.

Tips

  • Add <meta name="twitter:card" content="summary_large_image"> to every page.
  • If twitter:image is missing, X falls back to og:image, so one good og:image often covers both.
  • Keep text away from the left and right edges; wider images are cropped.

How the card is built

X builds a card from the page's HTML at the moment a link is first seen. It reads twitter:card to choose the layout, then looks for twitter:title, twitter:description and twitter:image. For any of those that are missing it falls back to og:title, og:description and og:image.

That fallback is why many sites only need one extra tag. If your Open Graph tags are already correct, adding twitter:card with the value summary_large_image is usually enough to get the wide image layout.

summary or summary_large_image?

The summary card shows a small square thumbnail beside the text. The summary_large_image card shows a wide image above the title and description. Use the large card for articles, tools and landing pages, where the picture does real work. Use the small card only when the image is a logo or avatar that would look poor stretched wide.

Design for the crop

The card is wider than it is tall, and the exact crop differs between the timeline, a quoted post and a direct message. Keep the headline and logo well inside the middle of the image, leave a margin of roughly a tenth of the width on each side, and avoid placing text in the bottom corners where an overlay can sit.

Use plain, high-contrast text at a large size. Previews are often shown at a fraction of the original width, so a caption that looks fine at full size can become unreadable.

Checking your result

Publish the page, then share the link in a private post or a message to yourself and look at the card before you share it widely. If you changed an image after the link was first seen, the old card may be cached; see the guide on previews that do not update.

Make the image

Use the OG image generator to download every size at once, and build the matching tags with the meta tags generator.

Questions

Does X use og:image?

Yes. If twitter:image is absent X falls back to og:image, but you still need twitter:card for the large layout.

Is 1200×630 OK for X?

Usually yes. It is slightly taller than 2:1, so X may trim a few pixels top and bottom. Keep the key content centred.

Related