SuperSEOPlus

Website Management Tools

Twitter Card Generator

Create the twitter: meta tags that control how your links appear on X. Pick a card type, add the text and image and copy the result.

How to use it

  1. Choose the card type.
  2. Fill in the title, description, image and alt text.
  3. Copy the tags into your <head>.

Example

A summary card with large image uses the 2:1 ratio image and alt text for accessibility.

Choosing a card type

The summary card shows a small square image beside the text. The summary with large image card shows a wide image above it and suits articles and announcements. If you set no Twitter-specific tags, X falls back to your Open Graph tags, so the two sets work together: set Open Graph first, then add these where you want something different.

Common mistakes

  • Leaving alt text empty. It describes the image to people who cannot see it, so say what the picture shows.
  • Using a very tall or very small image, which gets cropped or ignored.
  • Expecting an instant change. Previews are cached, so a changed image may take time to appear on posts that already exist.

What the output looks like

For the title “How to fix duplicate titles”, a short description, an image address, alt text and the handle @example, the tool produces six lines to paste inside your page’s <head>: twitter:card (summary_large_image), twitter:title, twitter:description, twitter:image, twitter:image:alt and twitter:site. Quotes and ampersands in your text are escaped so the tags stay valid, and line breaks in the description are collapsed to single spaces.

A handle with spaces or symbols is rejected with a message (1 to 15 letters, numbers or underscores). Fields you leave empty are left out of the output. Image URLs must be full web addresses that are reachable without a login.

Questions

Do I need these if I have Open Graph tags?

X falls back to Open Graph, so these are only needed to override it.

What is alt text for?

It describes the image for people who cannot see it.

Get practical SEO tips by email

Occasional emails with new guides and tools. Confirm by email first; unsubscribe in one click.