Broadside Broadside

X (Twitter) Card Validator

Paste a link to see the card X shows for it, which twitter:card, twitter:title and twitter:image tags it reads (or the Open Graph tags it falls back to), and what to fix before you post it.

X removed the preview from its own Card Validator at cards-dev.twitter.com in 2022, so it can't show you a card anymore. This one fetches your page the way X does: as Twitterbot, following your robots.txt.

summary vs summary_large_image

summary_large_image

A full-width 2:1 image with your domain over it. X no longer shows the title or description under a large card, so the image has to carry the post. Use a 1200×600 image, at least 300×157.

summary

A small square thumbnail beside the title and domain. X uses it when twitter:card is summary, and crops the image to a square, so use one at least 144×144 with the subject in the middle.

X also has player cards, which play video or audio from an iframe, and app cards, which link to an app store. Both need extra tags, listed below.

The tags X reads

X reads its own twitter:* tags first and falls back to the Open Graph tags for most of them, so a page with og:title, og:description and og:image needs only twitter:card on top.

Tag Falls back to Notes
twitter:card None Required. summary_large_image or summary. Without it X may post the link as plain text.
twitter:title og:title, then <title> Shown on a summary card. 70 characters at most.
twitter:description og:description, then the meta description Read but no longer shown on X's cards.
twitter:image og:image A full https URL (X doesn't resolve a relative one like /card.png) to a JPEG, PNG, WebP or GIF under 5 MB. X doesn't take SVG, and shows only a GIF's first frame.
twitter:image:alt og:image:alt Alt text for the image, for people using screen readers. 420 characters at most.
twitter:site None The site's @username, credited on the card. Optional, except on player and app cards.
twitter:creator None Optional. The author's @username.
twitter:player
twitter:player:width
twitter:player:height
None Required on a player card. An https URL to an iframe that plays your video or audio, and its size in pixels.
twitter:app:id:iphone
twitter:app:id:ipad
twitter:app:id:googleplay
None An app card needs at least one. Your App Store ID or Google Play package name.
<meta name="twitter:card" content="summary_large_image">
<meta property="og:title" content="Your page's title">
<meta property="og:description" content="A sentence about it.">
<meta property="og:image" content="https://example.com/card.png">
<meta name="twitter:image:alt" content="What the image shows">

Image size and ratio

For summary_large_image, use a 2:1 image, 1200×600 pixels. X crops other shapes to 2:1 from the middle, so a 1200×630 Open Graph image loses a sliver off the top and bottom and still works.

For summary, use a square image at least 144×144. A wide image gets cropped to its middle.

Keep it under 5 MB and at most 4096×4096, as JPEG, PNG, WebP or GIF. Serve it publicly over https, and don't block Twitterbot in robots.txt, or X shows the card without an image.

Frequently asked questions

Does X's (Twitter's) Card Validator still work?

No. X removed the preview from its Card Validator at cards-dev.twitter.com in 2022, and the page now shows no card. Paste your link here to see the card X builds and what to fix, or post it to X as a draft.

Why isn't my Twitter card showing up?

The usual reasons are a missing twitter:card tag, an image X can't fetch (blocked by robots.txt, behind a login, over 5 MB or an SVG) or a card X cached before you fixed the page.

How do I refresh a Twitter card after changing my tags?

X caches a card for about a week and has no tool to clear it anymore. Adding a query string to the link, such as ?v=2, makes X fetch the page again as a new link.

Do I need twitter:title and twitter:image if I have Open Graph tags?

No. X falls back to og:title, og:description and og:image, so you only need twitter:card. Add the twitter:* ones only when you want X to show something different.

What size should a Twitter card image be?

1200×600 pixels (2:1) for summary_large_image, or a square at least 144×144 for summary, under 5 MB. A 1200×630 image made for Facebook and LinkedIn works too, cropped slightly.

Do you check robots.txt?

Yes. X's crawler, Twitterbot, obeys robots.txt, so a rule that blocks it from the page means no card, and one that blocks it from the image means a card without a picture. We read the rules for Twitterbot, or for * when it has none, for both the page and the image.

Do you check player and app cards?

Yes. A player card needs twitter:player as an https URL, twitter:player:width, twitter:player:height and twitter:site, and an app card needs twitter:site and at least one app ID. We flag whichever are missing.

Do you keep the links I check?

No. We fetch the page and its image once to check them and don't store either.

Post this link everywhere at once

Write one post, and Broadside publishes it to X, LinkedIn, Bluesky, Mastodon, Pinterest and GitHub, building the Bluesky link card for you. Threads, Instagram, Facebook and YouTube are coming soon. Sign up free in a minute.

Get started free