Validating X (Twitter) Cards After the Legacy Validator Shutdown
X (formerly Twitter) retired its standalone Card Validator preview pane, making it harder for developers to verify whether a link renders as a large image card or a compact summary square. While X falls back to Open Graph tags for titles, descriptions, and images, it still depends on <meta name="twitter:card" /> to determine the card layout.
This tool inspects your page using the Twitterbot/1.0 User-Agent, checks for missing or misspelled twitter:card values, and compares both summary_large_image and summary layouts side by side.
X (Twitter) Card Meta Tag Specifications
| Tag / Requirement | Recommended Value | Notes |
|---|---|---|
| twitter:card | summary_large_image | Use summary_large_image for 1.91:1 hero images or summary for 1:1 square thumbnails. |
| twitter:title / og:title | ≤ 60 characters | Truncates around 70 characters depending on viewport width. |
| twitter:image / og:image | 1200 × 628 px (< 5 MB) | Supports PNG, JPEG, WebP, and static GIF. SVG images are not supported by X. |
| twitter:site | @yourhandle | Optional attribution handle for your website or publication. |
Fixing X (Twitter) Card Errors
- Inspect your URL with UA set to Twitterbot to confirm your CDN or WAF does not challenge Twitterbot/1.0.
- Ensure twitter:card is explicitly set to summary_large_image (not summary_large or large_image).
- Replace any SVG or relative image paths with an absolute PNG/JPEG/WebP URL at 1200×630px.
- Check robots.txt so Twitterbot is allowed to crawl both the HTML page and the image asset path.
Frequently Asked Questions
Why does X show a small square image instead of a large banner?
Either twitter:card is set to summary instead of summary_large_image, or the image is smaller than 300×157px and gets downgraded.
Does X support WebP for twitter:image?
Yes, modern X crawlers support JPEG, PNG, and WebP, though PNG and JPEG remain the most reliable across third-party embed tools.
How long does X cache link cards?
X typically caches cards for up to 7 days. Appending a harmless query parameter like ?v=2 to the shared URL forces a fresh crawl.
Is twitter:title required if og:title is already present?
No. X automatically falls back to og:title, og:description, and og:image when their twitter:* equivalents are omitted.