Twitter Card Generator
Twitter Card Generator interface with fields for card type, title, description and image URL
Control How Your Links Look on X
When someone shares a link on X, the platform reads meta tags from your page and builds a preview from them: a title, a description and an image. That preview is usually called a Twitter Card. If your page has no card tags, X can still borrow your Open Graph tags, but without a declared card type you leave the layout up to X.
What the Twitter Card Generator Outputs
A card is a handful of meta tags with a twitter: prefix. Unlike Open Graph, they use name instead of property. Output for a blog post looks like this:
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="How to Fix a Redirect Loop">
<meta name="twitter:description" content="Find the rule that sends visitors in circles and replace it with a single 301.">
<meta name="twitter:image" content="https://example.com/images/redirect-loop.jpg">
<meta name="twitter:image:alt" content="Diagram of two URLs redirecting to each other">
twitter:card sets the layout. summary shows a small square image beside the text, and summary_large_image shows a wide image, which suits articles. X's markup reference lists 70 characters for the title and 200 for the description. The twitter:image:alt tag describes the image for people who use screen readers, and twitter:site can tie the card to your account's handle.

The Twitter Card Generator turns your title, description and image URL into ready-to-paste meta tags
What the Twitter Card Generator Outputs
A card is a handful of meta tags with a twitter: prefix. Unlike Open Graph, they use name instead of property. Output for a blog post looks like this:
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="How to Fix a Redirect Loop">
<meta name="twitter:description" content="Find the rule that sends visitors in circles and replace it with a single 301.">
<meta name="twitter:image" content="https://example.com/images/redirect-loop.jpg">
<meta name="twitter:image:alt" content="Diagram of two URLs redirecting to each other">
twitter:card sets the layout. summary shows a small square image beside the text, and summary_large_image shows a wide image, which suits articles. X's markup reference lists 70 characters for the title and 200 for the description. The twitter:image:alt tag describes the image for people who use screen readers, and twitter:site can tie the card to your account's handle.
How to Use the Twitter Card Generator
Pick the card type, then type the title and description for that specific page. Paste the full image URL, including https://, and open it in a browser first to confirm it loads. Copy the generated tags and place them inside the head of the page. Write the title and description for the person scrolling past: say what the page covers in plain words, because long titles get cut off and a vague description gives no reason to click.
Open Graph Tags and the Fallback
X looks for twitter: tags first and can use matching Open Graph tags, such as og:title, og:description and og:image, when one is missing. A page that already has Open Graph tags may only need the card type. Here is a head before and after:
<!-- Before -->
<meta property="og:title" content="How to Fix a Redirect Loop">
<meta property="og:image" content="https://example.com/images/redirect-loop.jpg">
<!-- After -->
<meta property="og:title" content="How to Fix a Redirect Loop">
<meta property="og:image" content="https://example.com/images/redirect-loop.jpg">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image:alt" content="Diagram of two URLs redirecting to each other">
Writing the full set of twitter: tags is still useful when you want X to show a different title or image than other platforms do.
For images, X's reference lists JPG, PNG, WebP and GIF files under 5 MB, and SVG is not supported. For the large card, the published minimum is 300 x 157 pixels at about a 2:1 ratio. A size of 1200 x 630 is a common starting point, but cropping differs between platforms and apps, so keep the important part of the image near the center.
Checking the Preview
If the preview looks wrong after an update, there are several possible causes. X may still hold an earlier copy of the page, a plugin or cache may serve different tags than the ones you edited, the image URL may return an error, or an og: tag may disagree with your twitter: tag. Start by viewing the page source and confirming the tags sit in the head.
The Open Graph Checker shows what a fetch of your URL finds in the Open Graph tags, which helps with the last two causes. It does not prove that X's own crawler receives the same response, so read its result as a check, not a guarantee. Once the card tags are right, the Analyze Meta Tags tool reads the title, description and robots tags on the same page, so you can compare what search engines and social previews will each see.
These tags do not affect how Google ranks the page. They only shape the preview on X, and X may change how it lays out cards over time. The full tag list is in the X Cards markup reference.