Twitter card generator
Build X card tags and see which of the two card shapes you are going to get.
2:1 for a large card, square for a summary. Absolute URL only.
Card preview
Your title appears here
Card tags
<meta name="twitter:card" content="summary_large_image" />Before you ship this
- Warning: With no twitter:title the card falls back to og:title, and to the page title after that.
- Warning: A large-image card with no image degrades to a plain link, which is the least clicked thing on the timeline.
- Note: X reads Open Graph tags for anything missing here. If you already have og:title, og:description and og:image, twitter:card alone is enough.
How to use it
- Choose the card type. Large image is the one that earns attention in a timeline.
- Enter title, description and an absolute image URL.
- Add the @handles for the site and the author if you want attribution on the card.
- If you already have Open Graph tags, you may only need twitter:card — X falls back to og: for the rest.
Two shapes, one decision
The card type is the only tag here that changes the layout rather than the content. A large-image card occupies several times the timeline space of a summary, which is why the preview switches shape when you change it.
Choose summary deliberately: it suits a text-led link from a known publisher, where the wide image would be filler.
Most of these tags are overrides
X falls back to Open Graph for title, description and image. If those are already right, adding twitter: duplicates is maintenance you will forget to do, and two sources of truth that drift apart.
Set twitter:card, set the handles, and let the og: tags carry the content — unless you genuinely want different copy on X, which is the one good reason to override.
Handles are attribution, not decoration
twitter:site attributes the card to the publisher and twitter:creator to the author. They have to be real handles in @name form; anything else is dropped silently.
The practical value is that the attribution travels with the link, so a share by someone else still credits the author on the card.
X shows the image and little else now
Since 2023, links posted to X render as a bare image with the domain overlaid — the card title and description are no longer displayed in the timeline. The tags are still read by LinkedIn, Slack, Discord, WhatsApp and most other clients, which is the real reason to keep setting them.
Because the image now carries the whole message on X, any text inside it has to be legible at thumbnail size, and a summary card with a small square image says almost nothing. Prefer the large image card.
Twitter card generator FAQ
What is the difference between summary and summary_large_image?
Summary puts a small square image beside the text; summary_large_image puts a wide one above it. The large card takes several times the space in a timeline, which is the whole reason to choose it.
Do I need twitter: tags if I have Open Graph?
Usually only twitter:card. X reads og:title, og:description and og:image when the twitter: equivalents are missing, so the rest are overrides rather than requirements.
Why is my card not showing on X?
Most often the image is not reachable: behind authentication, relative, or blocked to the crawler. X also caches aggressively, so a fixed tag can take time to appear.
What size should the card image be?
1200 by 628 pixels for the large card, roughly 2:1, under 5MB. Below about 300 pixels wide the large card falls back to the small one, which is a common reason a card renders as a thumbnail when you expected the full width.
How do I validate the card now?
X retired its Card Validator, so the practical options are to post the link from a test account or to rely on a preview like this one. If a card misbehaves, the image URL and its accessibility to an anonymous crawler are the first things to check.
Should I add alt text for the card image?
Yes, through twitter:image:alt. It is read by screen readers in the timeline and it is the one twitter: tag with no Open Graph equivalent to fall back on, so omitting it means there is no alternative text at all.
Can a card show a video or a GIF?
Only through the player card, which requires approval from X and a hosted player meeting their requirements. For almost everyone the realistic choice is between the two image cards.
Why is an old image still showing?
X caches scraped cards for a long time and there is no public way to force a refresh since the validator was withdrawn. Publishing the new image at a new URL is the reliable workaround, because the cache is keyed on the image address.
Do these tags work outside X?
Many apps read them as a fallback or in preference to Open Graph, including several messaging clients. That is an argument for filling them in correctly even if X itself is not an important channel for you.
Do card tags affect search rankings?
No. They control how a link looks when shared, nothing more. They are worth setting because a well-presented link gets clicked and shared more, which is a different mechanism entirely.