Twitter Card Validator
Paste your page’s head or just the meta tags and see whether the Twitter Card and Open Graph tags are complete, with the fallbacks that actually apply.
Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.
What the Twitter Card Validator does
This twitter card validator will paste your page’s head or just the meta tags and see whether the Twitter Card and Open Graph tags are complete, with the fallbacks that actually apply. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for checking card tags before publishing a page. You may also want the keyword grouping tool.
How to use it
- Open your page, view source, and copy the <head> — or just the meta tags.
- Paste it in. Choose a card type if you want it checked against a specific one.
- Fix the blocking problems first, then the warnings.
How it works
A Twitter Card — now an X card — is built from meta tags in the page head, and the thing worth understanding first is the fallback chain. Twitter looks for its own `twitter:` tags and falls back to Open Graph `og:` tags for the title, description and image. That is why a page with no Twitter tags at all often still produces a card, and why a page with both can show something unexpected: the `twitter:` tag wins where it exists. This checker says which tag is supplying each value, so you can see what the platform will actually read.
The `twitter:card` tag is the one that most often goes missing, and the symptom is misleading. Without it, the card type is inferred and you usually get a small summary card instead of the large image one you designed for. The page looks correct, the image is present, and the card is simply the wrong shape. Setting `twitter:card` to `summary_large_image` explicitly is the fix.
Images cause the other half of the problems, and almost always for one of two reasons. The URL has to be absolute and served over https — a relative path works perfectly in your browser and not at all for a crawler fetching the page from outside. And the dimensions matter differently per card type: a summary card crops to a square, so anything with the subject off-centre gets cut badly, while `summary_large_image` wants roughly a 1.91:1 ratio, around 1200 by 628.
Two things this cannot do, and they are worth knowing because they explain most of the remaining confusion. It cannot fetch your page: everything here runs in your browser, so you paste the tags rather than a URL. And it cannot see the platform’s cache. Once a URL has been crawled, the card is stored, and fixing the tags does not update what people see until the cache expires or you ask the platform to re-crawl it. A card that is still wrong after a correct fix is usually a cached card, not a broken one.
A last practical note: the tags have to be in the page’s initial HTML. Meta tags added by JavaScript after load are invisible to the crawler, which does not run your scripts. For a single-page application that means server-side rendering or prerendering the head, not setting the tags in a client-side router.
When to use it
- Checking card tags before publishing a page.
- Working out why a card shows a small image instead of a large one.
- Finding which tag is supplying the title when both twitter: and og: are present.
- Validating a template’s head output across a site.
- Diagnosing a card that shows nothing at all.
Common mistakes to avoid
- Leaving out twitter:card, which quietly downgrades a large-image card to a summary.
- Using a relative image URL. It works in your browser and not for a crawler.
- Serving the card image over http. It must be https.
- Setting twitter:site to a URL rather than an @handle.
- Adding the tags with JavaScript. The crawler does not run scripts.
- Assuming a fix is live immediately. The platform caches the card.
Frequently asked questions
Why is my Twitter card not showing the large image?
Almost always a missing or wrong twitter:card tag. Without it the type is inferred and you get a small summary card. Set twitter:card to summary_large_image explicitly.
Do I need twitter: tags if I already have Open Graph tags?
Not for the basics. Twitter falls back to og:title, og:description and og:image. You do need twitter:card to control the card type, and twitter:site to attribute it to an account.
What image size should a Twitter card use?
For summary_large_image, roughly 1200 × 628 — a 1.91:1 ratio, at least 300 × 157, under 5 MB. For a summary card, at least 144 × 144, and it is cropped square so keep the subject centred.
I fixed my tags but the card is still wrong. Why?
The platform caches cards once a URL has been crawled. Your tags are correct and what people see is the stored version. It updates when the cache expires or when you ask the platform to re-crawl the URL.
Can this check a URL instead of pasted tags?
No. Everything on this page runs in your browser, and a browser cannot fetch another site’s page to inspect it. Paste the head from view-source instead, which also shows you exactly what the crawler would see.
Why do my tags work in the browser but not on social media?
Usually because they are added by JavaScript. Crawlers read the initial HTML and do not run scripts, so the tags have to be present in the server’s response.