OpenGraph Viewer

Twitter Card Meta Tags

Twitter Card tags control how your link looks on X. You need fewer of them than you'd think, because X falls back to your Open Graph tags. Here's the template, then every tag with its limits.

The Template

If you already have Open Graph tags, add one line:

<meta name="twitter:card" content="summary_large_image" />

If you want the full set with nothing left to fallbacks:

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@yourhandle" />
<meta name="twitter:title" content="Your Page Title" />
<meta name="twitter:description" content="One or two sentences about this page." />
<meta name="twitter:image" content="https://example.com/images/social-card.png" />
<meta name="twitter:image:alt" content="A short description of the image" />

Every Twitter Card Tag

TagRequiredLimitFalls back to
twitter:cardYessummary, summary_large_image, app or playerNothing
twitter:titleYes70 charactersog:title
twitter:descriptionNo200 charactersog:description
twitter:imageNoUnder 5 MB. JPG, PNG, WEBP or GIFog:image
twitter:image:altNo420 charactersNothing
twitter:siteNoThe site's @usernameNothing
twitter:creatorNoThe author's @usernameNothing

summary vs. summary_large_image

summary_large_image puts a large image across the full width of the post. It's the one most sites want. summary shows a small square thumbnail next to the title and description. Use it when you don't have a good wide image.

If you leave twitter:card out, X may still build a small summary card when the page has og:type, og:title and og:description. You won't get the large image without asking for it.

Twitter Card Image Sizes

Card typeRecommendedRatioMinimumMaximum
summary_large_image1200x6002:1300x1574096x4096, 5 MB
summary600x6001:1144x1444096x4096, 5 MB

A 1200x630 Open Graph image works for the large card. X trims a few pixels from the top and bottom. Only the first frame of an animated GIF is used, and SVG isn't supported. More in the OG image size guide.

Common Mistakes

  • Using property= on every tag. X's docs use name= for twitter: tags. It tolerates property=, but other parsers don't always.
  • A typo in the card type. summary-large-image with hyphens does nothing. It's underscores.
  • Blocking Twitterbot. If robots.txt blocks the page or the image, there's no card.
  • Forgetting the @. twitter:site wants @yourhandle, not a profile URL.

Frequently Asked Questions

What Twitter card tags do I actually need?

Just twitter:card if the page already has og:title, og:description and og:image. X falls back to those. Set twitter:card to summary_large_image for the big image.

What is summary_large_image?

It's the twitter:card value that shows a large image across the full width of the post, instead of the small square thumbnail the summary card uses. Most sites should use it.

What is the Twitter card image size?

A 2:1 image such as 1200x600 for summary_large_image, with a 300x157 minimum. A 1200x630 Open Graph image works too, since X only trims a few pixels. Summary cards use a square image of at least 144x144. Both top out at 4096x4096 pixels and 5 MB.

Do Twitter Card tags still work now that it's called X?

Yes. The tags still use the twitter: prefix, the card types are the same, and the crawler is still called Twitterbot.

Last checked Nov 30, 2026.

Test Your Twitter Card Tags

Paste a URL to preview the card and check each tag against X's limits.

Enter a public URL like example.com or https://example.com/blog.

Paste a URL above to see how it looks on social media

Works with any public website. No login needed.