Twitter Card Validator: How to Test X Cards Now

For years, the answer to "why does my link look wrong on Twitter?" was the Card Validator: paste a URL, see the card, and force a fresh crawl. That workflow is gone. This guide explains what changed, what still works, and how to test and refresh X cards today, using only what we could verify.

What happened to the Card Validator

  • The preview was removed in August 2022. X (then Twitter) staff announced in the developer community forum on 2 Aug 2022 ("Card Validator – preview removal", twittercommunity.com/t/175006) that the preview function was removed from the Card Validator, and pointed people to the Tweet composer for previews. We couldn't load the forum thread directly today. The wording is quoted on third-party pages that link to it, so treat this as reported, not re-verified.
  • The validator URL now asks you to log in. On 21 Oct 2026 we requested https://cards-dev.x.com/validator and were redirected to x.com/login. We didn't get a card preview.
  • X's Cards documentation: we couldn't find a current official page documenting card image limits on X's developer site. Older figures circulate from archived docs, but we don't repeat them because we couldn't confirm them from a live official source.

So when you search "twitter card validator" today, most of what you find describes a tool that no longer works the way it used to.

What still works

1. The X post composer (first-party)

Paste your URL into a new post in the X composer and wait for the card to appear. Don't publish. Delete the draft. This uses X's own crawler and renderer, which is why it was the recommended replacement. The downside: it's manual, and you need an account.

2. Check the HTML X's crawler will see

X reads tags from the HTML your server returns. Check what's actually served:

Replace your-site.com with your own site.

curl -sL https://your-site.com/my-post | grep -i 'twitter:\|og:'

You want, at minimum:

Replace your-site.com with your own site.

<meta name="twitter:card" content="summary_large_image" />
<meta property="og:title" content="My post" />
<meta property="og:description" content="A short description." />
<meta property="og:image" content="https://your-site.com/og/my-post.png" />
  • twitter:card sets the card type. summary_large_image requests the large-image layout. Without a card type you may get a small card or none.
  • Many sites set twitter:title, twitter:description and twitter:image too. Commonly reported behavior is that X falls back to the matching og: tags when twitter: ones are missing. We couldn't confirm that in current official X docs, so setting both is the safe choice.
  • If a single-page app adds the tags with JavaScript, a crawler that doesn't run scripts won't see them. Server-render them. See the framework guides.

3. A third-party preview tool

Our Free OG Image Checker fetches your page the way crawlers do, without running JavaScript. It shows an X card mockup next to LinkedIn, Facebook, WhatsApp, Slack, Discord and iMessage, and lists specific fixes. The mockups are labelled as approximations: X's actual rendering is only visible in X. We don't store the URLs you check.

Refreshing a cached X card

The old validator re-crawled your page. There's no official replacement for that today that we could find. What reliably works is changing the image URL, because a new URL is a new image to every cache:

Replace your-site.com with your own site.

<meta property="og:image" content="https://your-site.com/og/my-post.png?v=2" />
<meta name="twitter:image" content="https://your-site.com/og/my-post.png?v=2" />

X doesn't publish how long it caches card data, so we won't give a number.

For other platforms that do have official refresh tools, use them: Meta's Sharing Debugger (https://developers.facebook.com/tools/debug/) and LinkedIn's Post Inspector (https://www.linkedin.com/post-inspector/). Both loaded on 21 Oct 2026.

Why a card shows no image

Work through these in order (the full list is in OG image not showing):

  1. No twitter:card, or it's summary when you wanted a large image.
  2. og:image / twitter:image isn't absolute. It must start with https://.
  3. The image URL doesn't return 200 with an image type. Check with curl -sI.
  4. Your server or CDN blocks crawlers, through bot-protection rules or password-protected previews.
  5. Size: X has no current official spec we could verify. Follow the documented limits of other platforms, which a 1200×630 PNG or JPEG under 600 KB meets (OG image size).
  6. Stale cache. Change the image URL.

Card types at a glance

twitter:card Typical use
summary Small square thumbnail next to the title
summary_large_image Large image above or behind the title (what most blogs want)

Other card types (app, player) exist for specific use cases. Check X's developer documentation for their current status before relying on them.

Avoiding the problem: stable, absolute, generated images

Most broken X cards come from hand-managed images: relative paths, oversized exports, or an old file cached under the same URL. A generated image at an absolute URL that changes whenever the content changes avoids all three.

You can generate images in your own code, with Next.js ImageResponse, Satori, or Hugo's images.Text (see the guides). Or use Unfurlkit, a hosted URL that returns a 1200×630 PNG:

<meta name="twitter:card" content="summary_large_image" />
<meta property="og:image" content="https://unfurlkit.com/v1/basic.png?title=My%20Post&theme=dark" />
<meta name="twitter:image" content="https://unfurlkit.com/v1/basic.png?title=My%20Post&theme=dark" />

Changing the title changes the URL, so X sees a new image. Add &v=2 to force a fresh URL without changing the text. See the basic template for parameters.

Plans. Free: every image URL needs your key. A Free key gets 10 renders in total (no monthly reset), with a small "unfurlkit" watermark, and needs no card. Pro: $9/mo or $90/yr, with 10,000 renders a month, no watermark, and custom fonts (Inter, Roboto, Playfair Display, JetBrains Mono) and logo. A render is counted only when a unique image is generated and wasn't already cached. Shares and cache hits don't count. Over the limit, images keep rendering. On a signed Free key, images already made keep showing, and new ones get a plain version (your title on the basic card, with the small mark) that doesn't count. Upgrade to Pro for more renders. Upgrade to Pro to remove watermarks from all your images. See pricing.

Automate the check in CI

The composer is manual. You can catch most card regressions before deploy with a small script that fetches your built pages and checks the tags. This doesn't render X's card, but it catches the mistakes that break it.

// check-cards.mjs  (Node 18+; run against a preview deployment)
const urls = process.argv.slice(2);
let failed = false;

for (const url of urls) {
  const html = await (await fetch(url, { redirect: 'follow' })).text();
  const tag = (attr, name) =>
    html.match(new RegExp(`<meta[^>]+${attr}=["']${name}["'][^>]*content=["']([^"']+)`, 'i'))?.[1];

  const card = tag('name', 'twitter:card');
  const image = tag('name', 'twitter:image') ?? tag('property', 'og:image');
  const problems = [];

  if (card !== 'summary_large_image') problems.push(`twitter:card is ${card ?? 'missing'}`);
  if (!image) problems.push('no twitter:image or og:image');
  else if (!/^https:\/\//.test(image)) problems.push(`image URL not absolute https: ${image}`);
  else {
    const res = await fetch(image, { method: 'HEAD' });
    const type = res.headers.get('content-type') ?? '';
    if (!res.ok || !/^image\/(png|jpeg)/.test(type)) problems.push(`image returned ${res.status} ${type}`);
  }

  if (problems.length) { failed = true; console.error(url, '\n  ' + problems.join('\n  ')); }
  else console.log('ok', url);
}
process.exit(failed ? 1 : 0);

Run it with node check-cards.mjs https://preview.your-site.com/ https://preview.your-site.com/blog/my-post. The regex is deliberately simple: it expects content after the name or property attribute. If your HTML orders attributes differently, use an HTML parser instead. Replace your-site.com with your own site.

Framework-specific causes

  • Next.js: a missing metadataBase turns image paths relative. Set it in the root layout. (guide)
  • Astro: set site in astro.config.mjs and build URLs with new URL(path, Astro.site). (guide)
  • Hugo: the embedded X template only uses summary_large_image when it finds an image. Otherwise it falls back to summary. (guide)
  • WordPress: a theme and an SEO plugin both printing tags produce duplicates. (guide)
  • SvelteKit: ssr = false on a route hides <svelte:head> tags from crawlers. (guide)

Checklist

  1. twitter:card is summary_large_image.
  2. og:image (and optionally twitter:image) is absolute and returns 200 with an image type.
  3. Tags are in the server-rendered HTML (check with curl).
  4. Crawlers aren't blocked.
  5. Image is 1200×630, PNG or JPEG, under 600 KB.
  6. Changed the image? Change its URL too.
  7. Previewed in the X composer (without posting) or the Free OG Image Checker.

FAQ

Which languages and scripts are supported? Right-to-left scripts such as Arabic and Hebrew aren't supported yet at launch.

Does the Twitter Card Validator still work? Not as a preview tool. The preview was removed in 2022, and the URL now redirects to a login page (checked 21 Oct 2026).

How do I clear X's card cache? We found no official tool. Change the image URL, for example by adding ?v=2.

Is there an official Twitter card validator alternative? X's own suggestion was the post composer. Third-party checkers, including ours, show approximations.

Does X use og:image? That's widely reported, and setting twitter:image as well removes any doubt.

Why do I see a small card? Usually twitter:card is missing or set to summary.

Updated 2026-10-21

Try it freePricing