Twitter/X Card Generator
Pick a card type, fill in the fields, and watch the X post preview update live. The output is a clean twitter: tag block ready to paste next to your Open Graph tags.
Your brand's X handle. Optional.
Large card: 1200 × 628. Summary card: square, min 144 × 144.
How X builds the card
When a link is posted, X's crawler reads the page's twitter: meta tags, falls back to the matching og: tags for anything missing, and renders one of two layouts. summary_large_image puts a full-width image above the text; summary puts a small square thumbnail to the left. This preview switches between the two layouts live so you can judge which one your image actually suits.
Checklist before you ship
- Keep og: tags as the base layer. X falls back to og:title, og:description, and og:image, so twitter: tags are only required where you want different values or to force a card type.
- twitter:card is the one mandatory tag. Without it, X may not render a card at all.
- Use an absolute, public image URL. The crawler cannot read images behind logins or robots blocks.
- Validate with a real post. The old standalone validator is gone; paste your URL into a draft post on X to see the live render.
Frequently asked questions
Should I use summary or summary_large_image?
Use summary_large_image for almost everything: blog posts, products, landing pages. The full-width image dominates the timeline and earns more clicks. The compact summary card, with its small square thumbnail, fits profile pages, docs, and utility pages where you have no strong hero image.
What are the image specs for each card type?
summary_large_image wants roughly 1200 by 628 pixels at about a 1.91:1 ratio, with a minimum of 300 by 157 and a maximum of 4096 by 4096. The summary card wants a square image, minimum 144 by 144. Both cap at 5 MB and accept JPG, PNG, WEBP, and GIF.
Do cards work without a twitter:site handle?
Yes. twitter:site is optional attribution that links the card to your brand account. The card renders fine without it, so leave it out if you have no account, but include it when you do since it ties shares back to your profile.
Does X still use Twitter cards after the rebrand?
Yes. The platform is X, but the markup never changed: the twitter: namespace, the same card types, and the same validator pipeline all still work. Keep your existing twitter: tags exactly as they are.