Skip to content
All articles
Social metadata & SEO

Twitter Card Validator & Open Graph Meta Tags Guide (2026)

X removed the preview box from its legacy Card Validator. Here is how to test Twitter Cards and Open Graph tags locally, fix broken og:image previews, and bust social caches.

6 min read - Updated 2026-11-24

When you share a launch link on X, LinkedIn, Slack, or Discord, a broken or missing Open Graph card kills click-through rate instantly. Since X retired the live preview pane from its old Twitter Card Validator, developers need a reliable way to validate tags and preview crops before deploying.

The minimum required Twitter Card and Open Graph tags

You do not need thirty proprietary tags. Every modern platform (X, LinkedIn, Slack, Discord, iMessage, and WhatsApp) reads a small shared core of Open Graph tags plus two Twitter-specific overrides.

og:title & twitter:title — keep under 60 characters so headlines never clip

og:description & twitter:description — 80 to 155 characters of concrete value

og:image & twitter:image — absolute https:// URL pointing to a 1200x630 PNG or JPG

twitter:card — use summary_large_image for full-width cards or summary for compact square thumbnails

og:url — canonical https:// page URL matching your rel=canonical tag

Why your og:image fails to show on X or LinkedIn

Almost every broken link preview traces back to one of five mistakes. Run your tags through our free Twitter Card Validator & Open Graph Previewer at /tools/social-card-validator, then check these server-side requirements:

Relative image paths (/og.png instead of https://domain.com/og.png)

Serving WebP or SVG to older crawlers — stick to PNG or JPEG for maximum compatibility

Cloudflare WAF or bot rules returning 403 to Twitterbot, LinkedInBot, or Slackbot

Meta tags injected only by client-side JavaScript instead of SSR/prerendered HTML

Stale social CDN cache — append a version query parameter like ?v=20261124 to force a fresh fetch

How to refresh a cached Twitter or LinkedIn card

Social networks aggressively cache link previews for days. Changing the image file at the exact same URL rarely refreshes old embeds immediately. Rename the image filename or bump a version query string on og:image and twitter:image (?v=2), then share or inspect the updated URL.

Bump ?v=YYYYMMDD on og:image whenever you redesign your card artwork

Use LinkedIn Post Inspector to clear LinkedIn's cache explicitly

Confirm your HTML returns HTTP 200 with og:image in the initial server response

Release checklist

Verify og:image returns HTTP 200 with Content-Type: image/png or image/jpeg.

Confirm 1200x630 (1.91:1) dimensions with key text centered away from outer edges.

Include twitter:card set to summary_large_image.

Preview your title, description, and artwork in /tools/social-card-validator before shipping.

Frequently asked questions

What happened to the official Twitter Card Validator preview?

X removed the visual card preview from cards-dev.twitter.com/validator and now only displays crawl logs there. You can preview your exact card layout and validate tag lengths locally using /tools/social-card-validator before posting.

What is the best og:image size for X, LinkedIn, Slack, and Discord?

1200 × 630 pixels (1.91:1 aspect ratio) in PNG or JPEG format under 2 MB is the universal safe standard across X summary_large_image cards, LinkedIn, Slack, Discord, and iMessage.

Why does my Twitter Card image still show the old image after updating?

X caches images by URL. Change the image filename or append a query string like /meta/og.png?v=20261124 in both og:image and twitter:image so the crawler treats it as a new asset.

Related guides