Boneyard Tools

Twitter Card Generator

Build the twitter: meta tags that control how your links look when shared on X (Twitter). Choose a card type, fill in your title, description, image and handles, preview the result, then copy the tags into your page head.

How to create Twitter card tags

  1. Pick a card type: large image for a wide hero or summary for a small thumbnail.
  2. Enter your title, description, image URL and optional site and creator handles.
  3. Copy the generated meta tags and paste them inside your page's <head>.

Examples

Large image card

Large image, title, description and an image URL
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="My Page" />
<meta name="twitter:description" content="A short summary." />
<meta name="twitter:image" content="https://example.com/card.png" />

Frequently asked questions

What are Twitter (X) cards?

Twitter cards, now called X cards, are rich previews that appear when someone shares your link. The twitter: meta tags in your page head tell X which title, description and image to show, so a plain URL turns into a tidy preview card.

What is the difference between summary and summary_large_image?

A summary card shows a small square thumbnail next to the title and description. A summary_large_image card shows a large, full-width banner image above the text, which usually gets more attention in the feed.

Do I still need Twitter cards if I already have Open Graph tags?

Often you do not. X falls back to Open Graph tags (og:title, og:description, og:image) when twitter: tags are missing. Adding a twitter:card tag is still worth it so you can control the layout, and twitter:site or twitter:creator can attribute the post to your account.

What image size should I use?

For a large image card use roughly a 1.91:1 ratio, such as 1200 by 628 pixels. For a summary card use a square image of at least 144 by 144 pixels. Keep files under about 5 MB and use a JPG, PNG or WebP.

Do the site and creator handles need an @ symbol?

X expects handles to start with @. This tool adds the @ for you if you leave it off, so you can type either yoursite or @yoursite and get the same valid tag.

Is my data sent to a server?

No. The tags are generated entirely in your browser as you type, and nothing you enter is uploaded or stored.

Related tools