Free Twitter Card Generator
The Twitter Card Generator creates the meta tags needed for rich link previews on X (Twitter). Choose a card type and fill in your details, then copy the tags.
The Open Graph side is handled by the Open Graph (OG) Tag Generator, and both are previewed by the Open Graph Preview and Twitter Card Preview tools. The wider set of head tags belongs to the Meta Tag Generator.
How to use the Twitter Cards
- 1 Enter the page URL and the card type you want.
- 2 Fill in the title, description, and image.
- 3 Choose the card size — the large summary card or the compact one.
- 4 Copy the tags into the page head.
Card types and what they suit
The choice between a compact and a large card is really a choice about what should attract attention. If the page is an article with a strong image, the large card earns its space. If it is a tool, a landing page, or a product where the text is the draw, a compact card beside an icon is often better, because a large card with an uninteresting image consumes the entire visible area.
The player card exists for media, and it is the only type that requires anything beyond an image — an embedded player page and a specified size. It is worth knowing it exists so you do not reach for it when a large image card would do.
Getting the tags right
- Put the card type tag first; some implementations stop parsing at the first unrecognised tag.
- Use absolute URLs for images, since relative paths fail silently.
- Check the description length against the card type; the compact card shows less text than the large one.
- Re-scrape the URL after editing, or you will test the cached version rather than the new one.
Frequently asked questions
Do I need both Twitter card tags and Open Graph tags?
Yes, and duplicating them is the safe approach. Many platforms read Open Graph, and the card tags govern how the platform that defines them renders a link. Where a platform supports both, its own tags take precedence; where it does not, the Open Graph fallback prevents an empty card. Maintaining both costs four extra lines.
What is the difference between the card types?
The summary card shows a small square image beside the text, which suits a logo or an icon and keeps the card compact. The large image card puts a wide image above the text, which suits photography, charts, and anything where the picture is the point. Choosing wrongly means either a tiny image nobody notices or a card that takes up most of the screen.
Why does no card appear at all?
Usually because the tags are not in the initial HTML — they were added by client-side rendering after the crawler had already read the page. The second most common cause is a missing or malformed image URL. Both are checkable: fetch the page and look at the raw source, then verify the image URL resolves.
Related SEO & Webmaster Tools
You might also need
Tools from other categories that people pair with the Twitter Cards: