Twitter Card Validator
Preview and validate Twitter Card meta tags.
Related Tools
OG Tag Previewer
Preview Open Graph tags as they appear on Facebook, Twitter, and LinkedIn.
Use tool →Meta Tag Generator
Generate meta tags, Open Graph tags, and Twitter Card markup for any page. The code updates as you type. Copy or download.
Use tool →Schema.org Generator
Generate JSON-LD structured data for 12 schema types, including LocalBusiness, Product, FAQ, and Article.
Use tool →Canonical Checker
Verify canonical URL tags in your page source.
Use tool →How to Validate Your Twitter Cards
View Source on your page (Ctrl+U on Windows, Cmd+Option+U on Mac), copy the entire HTML, and paste it above. The tool parses the main Twitter Card and Open Graph meta tags, shows you exactly how your card will render on Twitter/X, and runs a validation checklist against Twitter's requirements. You'll know what's missing, what's too long, and what's falling back to OG tags before you tweet a single link.
Twitter took the preview out of its official Card Validator in 2022. Third-party alternatives usually require a live URL. This tool works with raw HTML, so you can test your cards before the page is even deployed. The image preview still needs the image at a public https URL.
What Are Twitter Cards?
Twitter Cards are meta tags that control how your link appears when someone shares it on Twitter/X. Instead of a bare URL, Twitter shows a rich card with an image, title, and description. You control this by adding <meta name="twitter:..."> tags to your page's <head>. Without them, Twitter falls back to Open Graph tags. If those are missing too, you get whatever Twitter's crawler decides to grab.
Summary vs Summary Large Image
Twitter supports two card types for most sites. The summary card shows a small square thumbnail on the left with title and description on the right. Good for articles and reference pages where the image isn't the main draw. The summary_large_image card puts a large banner image on top. Ideal for blog posts with hero images, product launches, or anything visual. Set the type with <meta name="twitter:card" content="summary_large_image">.
Twitter Card Image Requirements
For summary cards: minimum 144×144 pixels, maximum 4096×4096 pixels, 1:1 aspect ratio. For summary_large_image cards: minimum 300×157 pixels, recommended 1200×600 pixels, 2:1 aspect ratio. Both types: maximum 5 MB file size, JPG, PNG, WEBP, and GIF formats supported. The image URL must be absolute (full https:// path). Relative URLs won't work.
The OG Tag Fallback Chain
Twitter reads twitter:* tags first. If they're missing, it falls back to Open Graph (og:*) tags. If those are missing too, it looks at your HTML <title> and <meta name="description">. This means you can often get away with just OG tags and a twitter:card tag. But if you want different copy on Twitter than on Facebook or LinkedIn, set explicit twitter:title and twitter:description values.
Do I need both twitter: and og: tags? +
og: tags when twitter: tags aren't set. But you must set twitter:card to control the card layout. Without it, Twitter defaults to a small "summary" card. Best practice: set your OG tags, add twitter:card, and only add other twitter: tags if you want different content on Twitter vs other platforms.
What happened to the official Twitter Card Validator? +
Why is my Twitter Card not showing an image? +
https:// URL), the image is too small (144×144 minimum for summary, 300×157 for large), the image is behind authentication or a CDN that blocks Twitter's crawler, or the file is over 5 MB. Check your twitter:image tag points to a publicly accessible, correctly sized image.
What card types does Twitter/X support? +
summary (small square image, title, description), summary_large_image (large image on top), app (a direct download link to a mobile app), and player (video or audio). X has since taken those pages out of its developer docs, so that list is the last one it published. Most web pages want summary or summary_large_image. This tool checks and previews those two. It accepts app and player as valid card types, but it can't draw them.
How long until Twitter refreshes my card after I update tags? +
?v=2), shorten it with bit.ly, and post the short link. The guide only said this may work, so don't build a launch around it. Card images are cached by URL too. If the text updates and the image doesn't, add a parameter to the image URL in your twitter:image tag.