About the Twitter Card Generator
Links shared on X show a card built from Twitter card meta tags, either a compact summary with a small square image or a large card with a wide image above the text. This Twitter card generator builds the tags for both types, including the title, description, image and account handle, and shows a live preview so you can check how the card will look before sharing. X also reads Open Graph tags when Twitter-specific ones are missing, so many sites set both. Use a clear image with little small text, since cards are often viewed on phones. To create the full Open Graph set, use the Open Graph Generator, and for search snippets, the SERP Preview Tool.
Most fields fall back to their Open Graph counterparts when no X-specific value exists. That fallback is the reason a site with solid Open Graph markup already looks acceptable on X. Two settings deserve deliberate attention: the card type, which alone determines the layout, plus the two account handles, one for the publisher and one for the author, which credit the card to the right people.
Both layouts are drawn in the preview, so you can judge which one flatters your picture. A tall portrait photo is cropped awkwardly in the wide format, while a detailed infographic becomes unreadable as a small square thumbnail. You are also warned when an image is likely to be refused, because the platform enforces its own limits on file size and type.
How to use the Twitter Card Generator
- Pick the card layoutChoose summary for a small square thumbnail or large image for a wide banner.
- Fill in the text and pictureGive a title, a description and a full image address starting with https.
- Add account handlesThe publisher and author handles are optional but credit the card.
- Copy the markupPlace the tag block in the head section of your page.
Twitter Card Generator features
- Both summary and large-image card layouts
- Live preview for each layout
- Fields for publisher and author handles
- Alt text field for the shared image
- Notes on which values fall back to Open Graph
- Alert when the image address is relative
- Escaped tag block copied in one click
Common uses
- Deciding how an article appears when posted on X
- Picking the layout that suits a particular image
- Crediting posts to both a brand account and a writer
- Correcting a card that shows the wrong picture
- Building card tags into a site template
Card tags for X in practice: an article card, falling back to Open Graph, image alt text, checking without the old validator and other apps that read the tags
When a link is posted on X, formerly Twitter, a card can show a large image, title and description instead of a bare address. The tags still begin with twitter: despite the rename. This guide sets up a card for a news article and covers how the card relies on Open Graph tags, image requirements, alt text for card images, checking cards now that the old validator is gone and other apps that read these tags.
A worked example: an article card
A news site wants large image cards for its articles. It adds twitter:card set to summary_large_image, twitter:site set to the publication's account and twitter:creator set to the article author's account. Because the page already has Open Graph title, description and image tags, the card takes those values automatically, so only the card type and account tags are needed.
Falling back to Open Graph
X reads twitter: tags first and falls back to Open Graph tags for the title, description and image when twitter: versions are missing. Maintaining one set of Open Graph tags and adding just the card type avoids keeping two copies of the same text in sync. Add twitter:title or twitter:description only when the X version should differ.
Image requirements
For large image cards, an image with a 2 to 1 ratio works well, at least 300 by 157 pixels and under 5 MB, in JPG, PNG, WebP or GIF format. In practice, 1200 by 600 pixels, or the common 1200 by 630 Open Graph size, displays crisply. Keep important content away from the edges, since the image may be cropped slightly.
Alt text for card images
The twitter:image:alt tag provides a text description of the card image for people using screen readers. A short sentence describing the image, rather than repeating the title, makes shared links more accessible at almost no cost.
Checking cards
The old Card Validator no longer shows previews. To check a card, start composing a post with the link and look at the preview, or post it from a test account. If the preview is wrong, fix the tags and wait for the cached version to expire, since X stores card data for some time.
Other apps read the tags too
Some messaging and collaboration apps also read twitter: tags when unfurling links, especially when Open Graph tags are missing. Having both sets in place, with Open Graph as the main source, gives consistent previews across most places a link might be shared.
Choosing the card type
The summary card shows a small square thumbnail beside the text, while summary_large_image shows a wide image above it. Large images attract more attention in busy timelines and suit articles, products and events, while the small card suits pages without a strong image, such as documentation.
Account handles
The site and creator tags take account handles, which link the card to the publisher and author. Keep them current if accounts are renamed, since outdated handles point readers to the wrong profile or to nothing at all.
Common mistakes
- Duplicating every Open Graph value in twitter: tags without need.
- Using images that are too small or the wrong shape.
- Forgetting alt text for card images.
- Expecting an instant update after changing tags.
Related tools
To set up the Open Graph tags cards rely on, use Open Graph Generator. To create share buttons, try Social Share Link Generator, and to resize card images, Image Resizer.
When a card does not appear
If no card appears, check that robots rules allow X's crawler, Twitterbot, to fetch the page and its image, that the tags are in the HTML sent by the server rather than added by scripts, and that the image address is public and uses https. These three checks solve most missing cards.
Measuring clicks from X
Cards make links attractive, but analytics needs campaign tags to credit visits correctly. Adding tags such as utm_source=x and utm_medium=social to links you post shows how much traffic and how many sign-ups or sales come from your posts.
Distinct images per article
When every article shares the same generic image, readers scrolling past cannot tell posts apart. A distinct image for each article, even a simple branded design with the headline, earns more attention and makes your timeline look more professional.
Other card types
Besides summary cards, X has player cards for embedded video or audio and app cards for promoting mobile apps. These have extra requirements and may need approval. For most websites, the two summary card types cover everything needed.
Keep descriptions short
Cards on phones show only a short piece of the description, if any. Put the most useful words first and keep descriptions brief, so the card still makes sense when the end is cut off or the description is hidden altogether.
Privacy
Tags are generated in your browser. Nothing is sent anywhere or stored.
Frequently asked questions
How do the summary and large-image cards differ?
A summary card shows a small square picture next to the title and description. The large-image card places a wide banner above the text and takes up far more of the feed, which usually earns more attention when the image suits a wide shape.
Are these tags needed if my page has Open Graph tags?
Not strictly. The title, description and image are read from Open Graph when the X versions are missing. The card type has no fallback, though, so without twitter:card the platform decides the layout for you.
Which image dimensions work best?
For a large-image card, use 1200 by 628 pixels or another wide ratio. A summary card needs a square picture no smaller than 144 pixels on each side. Keep files below 5 MB; supported formats are JPEG, PNG, WebP and GIF.
Why does X still show my old card?
Card previews are cached. After you change the tags, run the page through the platform's card validator to request a fresh copy, and bear in mind that posts already published may keep the earlier version.
Should handles include the @ symbol?
Yes. Both the publisher and author fields expect a handle that starts with the @ symbol, and the generator adds it automatically if you leave it out when typing the account name.
Will card tags help my search rankings?
No. Only the social platform reads them, and search engines ignore them for ranking. What they influence is how attractive your link looks when shared, and therefore how many people engage with the post.