Twitter Card Generator
Enter at least a title and a description.
Preview your card with X’s Card Validator after publishing the page. X reads these tags from the live page — a local preview cannot fetch your image.
Build Twitter card meta tags for X (formerly Twitter) in seconds. Choose a summary or large-image card, add your title, description and image, and copy the tags to paste into your page’s head. Pair them with Open Graph tags — X falls back to Open Graph when a Twitter tag is missing, but its own tags give you full control over the card.
Frequently asked questions
What is a Twitter card?
A Twitter card is the preview X shows when someone shares your link — a title, description and image in a neat card instead of a bare URL. The tags that control it start with twitter: and live in your page’s head.
Which card type should I choose?
summary_large_image for most pages: the big image gets more attention. summary is better for text-heavy pages where a small thumbnail is enough, such as a blog index.
What image size works best?
For a large-image card, 1200 × 628 pixels is the recommended size. Keep the file under 5 MB and use a full https:// URL — relative paths do not work.
Do I still need Open Graph tags?
Yes, ideally. Open Graph tags control the preview on Facebook, LinkedIn and WhatsApp, and X uses them as a fallback. This page makes the Twitter tags; the Open Graph generator makes the rest.