Twitter Card Generator

Generate Twitter / X card meta tags with a live preview

Create the meta tags that control how your links look when shared on X (Twitter): summary, large image, player (video/audio) and app cards, with a preview, image size advice and handle validation.
Try an example:

Output will appear here...

About Twitter Card Generator

How it works

  1. Pick a card type and fill in the title, description and image.
  2. The tool writes the twitter: meta tags for your page's <head>, escaping special characters and normalising @usernames (a full x.com profile link works too).
  3. A preview shows the card layout - large image above the text, or a small square image beside it.
  4. Checks give image size guidance for the chosen card and flag missing alt text.

What you need

  • A title. An image is strongly recommended for summary cards.
  • For player cards: an https:// URL of an embeddable player, plus its width and height.
  • For app cards: your App Store ID and/or Google Play package name.

Tips

  • X falls back to your Open Graph tags (og:title, og:description, og:image) when twitter: tags are missing - so you often only need twitter:card.
  • Large image cards get more attention; use 1200 × 628 px images.
  • Image alt text makes your card accessible to people using screen readers.

Limitations

  • X shows link previews differently in apps and on the web and may crop images; the preview is an approximation.
  • X caches cards for about a week; changes may take time to appear.
  • Player cards must be approved for the player to play inline.

Runs in your browser. Everything is generated in your browser. Your image is loaded from its URL only to show the preview.

Frequently asked questions

Do I need Twitter tags if I already have Open Graph tags?+

Usually only twitter:card. X reads og:title, og:description and og:image when the twitter: versions are missing.

Which card type should I use?+

Summary with large image for articles, products and landing pages; summary for profiles, docs and pages without a strong image; player for embeddable video or audio; app to promote a mobile app.

How do I test my card?+

Paste your link into a draft post on X - the preview appears before you publish. The official Card Validator no longer shows previews.

Why is my old image still showing?+

X caches cards. Changing the image file name (or adding ?v=2 to the image URL) forces a fresh fetch.