← All guides

Platform Guide

Twitter (X) Card Image Not Showing: Fix the Tags, the Crawler and the Cache

Why a link on X shows a small square, the wrong image or no image, how X falls back from twitter: tags to Open Graph, its size and file limits, and how to get a card refreshed, with the Card Validator's status today.

How X builds a card from your page

When a post contains a URL, X's crawler fetches the page, reads its meta tags, and builds the card from them. It does not look at what your page renders. Every card problem is therefore a question about three things: which tags the crawler found, whether it was allowed to fetch the page and the image, and what it kept from an earlier visit.

A note on sources before the details. X's Cards documentation used to live under developer.x.com/en/docs/x-for-websites/cards. Read on 2026-11-24, those addresses redirect to the general developer docs home, and the new docs site has no Cards section. Everything below about X's rules comes from copies of those pages archived between late January and early February 2026: Getting started, Cards markup, Summary card with large image and Troubleshooting. They still say Twitter throughout, and some statements are older than X's current interface.

The rules that carry most of the weight:

  • Twitter tags first, Open Graph second. The documentation says the card processor "first checks for the Twitter-specific property, and if not present, falls back to the supported Open Graph property". The markup reference maps twitter:title to og:title, twitter:description to og:description, twitter:image to og:image and twitter:image:alt to og:image:alt. You do not need both sets.
  • twitter:card has no real fallback. The card type is the one tag that is not mapped. The reference only says that if og:type, og:title and og:description exist but twitter:card is absent, "a summary card may be rendered". That is the small card.
  • One card type per page. If more than one twitter:card is present, "the last one in sequence will take priority".
  • The crawler obeys robots.txt and caches. Both are covered below, because they cause most "no card at all" reports.

A minimal head that works, with Open Graph doing the work and one Twitter tag for the card type:

<meta property="og:title" content="Your page title" />
<meta property="og:description" content="One or two sentences." />
<meta property="og:image" content="https://your-site.com/og/your-page-v2.png" />
<meta property="og:image:alt" content="What the card shows" />
<meta name="twitter:card" content="summary_large_image" />

X shows a small square instead of a large image

Symptom

Your 1200 x 630 image appears as a small thumbnail beside the title, not as a wide image across the post.

Cause

The card type is summary, either because you declared it or because you declared nothing. The two types differ in the image they expect:

  • summary_large_image takes an image with an aspect ratio of 2:1.
  • summary takes a 1:1 image, and the documentation says it "will be cropped to a square on all platforms".

With no twitter:card, X may choose summary, as described above. So a site that relies on Open Graph alone can have a perfect card image on every other platform and a thumbnail on X.

Fix

Add one tag to the head, and give it exactly this value:

<meta name="twitter:card" content="summary_large_image" />

The documentation lists that tag as the only required property of the large image card. The Next.js App Router has a specific version of this trap, where a page that declares its own twitter object loses the card type and falls back to summary. The Next.js guide reproduces it and gives the fix.

Detected by

The checker has a "Twitter card" check. A missing tag is a warning when the page has an image, and the suggested fix is the tag above. Where the tag exists and says summary on a page whose image is at least 600 pixels wide, it adds a "Twitter card match" warning.

The site audit reports twitter_card_small (warning) for pages that declare a card type other than summary_large_image beside an og:image. When the page has an og:image and no twitter:card, the audit reports twitter_card_missing (warning).

X shows the wrong image, and Facebook shows the right one

Symptom

The same URL previews correctly on Facebook, LinkedIn and Slack and shows the homepage card, a logo or an old image on X.

Cause

Because X looks for the Twitter property first, a twitter:image on the page wins over og:image, whatever the Open Graph tag says. The other platforms never read twitter:image, so a wrong value there is invisible everywhere except X. It usually arrives as a layout that sets one twitter:image for the whole site, or a leftover from a previous theme.

Fix

The documentation's own arrangement is the simple one: declare og:image per page and leave twitter:image out, so X takes the Open Graph value. Declare twitter:image only when a page really needs a different picture on X, and then make it per page as well.

Detected by

The audit reports two findings for this. twitter_image_stale (warning) means pages share one twitter:image while their og:image differs, which is the case where X is wrong and everything else is right. twitter_image_shared (warning) means one twitter:image is shared across different templates and differs from their shared og:image. Neither fires for a page that has no twitter:image, because that is the setup recommended above.

X shows no card or no image at all

Symptom

A post with your link shows only the URL, or a card with a title and an empty image area.

Cause and fix

Go through these in order. The first two are by far the most common.

The tag is missing or the image does not load. No og:image and no twitter:image means no picture. An image URL that returns 404 or a login page means the same. The documentation's troubleshooting page gives the most common cause of a "failed to get a proxied URL for the image" error as an image that is "not publicly accessible on the web", which happens when you test against a staging site or an internal network. The audit reports image_missing (critical) and image_broken (critical). The checker's "Image loads" check fails with the HTTP status.

robots.txt blocks the crawler. X's crawler "respects Google's robots.txt specification". The documentation says that if a page with card markup is blocked, no card is shown, and if the image URL is blocked, no thumbnail or photo is shown. The crawler's user agent token is Twitterbot, with a version such as Twitterbot/1.0. If you disallow all robots and want cards, give it an exception:

User-agent: Twitterbot
Disallow:

User-agent: *
Disallow: /private/

Check the image path too: a rule that blocks the folder or route serving the card blocks the image even when the page is allowed. The documentation adds that the file must be saved as plain text with ASCII encoding.

The server turns the crawler away. A firewall, a bot challenge, a hosting provider's bot protection or a leftover deny from line in .htaccess all produce a card that never appears. The documentation says the crawler needs TLS 1.1 or later, and that a slow or distant server can make it time out. To see what your server sends a client using that user agent, run:

curl -s --compressed -A 'Twitterbot/1.0' -D - -o /dev/null \
  https://your-site.com/your-page

You want a 200 status, a text/html content type and a quick answer. A firewall that checks addresses will treat your curl differently from the real crawler. The documentation lists the crawler's ranges (199.16.156.0/22, 199.59.148.0/22 and 192.133.76.0/22, ASN AS13414), so a pass here does not clear that firewall.

The page is too large. The documentation gives a limit of 2 MB for the page response, and the message "the response is too large" when it is exceeded. Measure what the crawler receives:

curl -s --compressed -A 'Twitterbot/1.0' https://your-site.com/your-page | wc -c

The image is too large for the crawler. The documentation says the crawler "will typically download up to 5MB images". Anything near that should be rebuilt as a smaller file.

Detected by

image_missing, image_broken and image_unverified, which means the audit could not tell either way (a host that refuses automated requests is the usual reason). properOG fetches pages as its own bot, ProperOGBot, and does not send the Twitterbot user agent, so it cannot see a block that applies to Twitterbot alone, in robots.txt or in a firewall. For those, use the curl commands above.

Image size, ratio and file limits

These are the limits as the archived documentation gives them for the two card types a website uses.

Summary card with large image

  • Aspect ratio 2:1, minimum 300 x 157 pixels, maximum 4096 x 4096 pixels.
  • Under 5 MB.
  • JPG, PNG, WEBP and GIF. Only the first frame of an animated GIF is used. SVG is not supported.

Summary card

  • Aspect ratio 1:1, minimum 144 x 144 pixels, maximum 4096 x 4096 pixels. Cropped to a square.
  • The same 5 MB limit and the same formats.

Both pages tell you to use "a unique image representing the content of the page" and not a logo, an author photo or anything that spans several pages.

Text limits

The markup reference gives 70 characters for twitter:title, 200 for twitter:description and 420 for twitter:image:alt. On the large card, the title is truncated to two lines on iOS and Android and one line on the web, and the description is shown on the web, truncated to three lines, and not shown on iOS or Android. Keep anything essential out of the description alone.

What this means for a 1200 x 630 card

Most OG images are 1200 x 630, a ratio of about 1.91:1. X's stated ratio is 2:1, which is 1200 x 600. The documentation does not say what X does with a card that is close to 2:1 but not exact, and I could not test it on a live account for this guide. Keep everything that matters away from the top and bottom edges, so a small crop or thin bars change nothing, and look at the result in X's composer. The checker rates a 1200-pixel-wide image within about 0.1 of the 1.905 ratio as an excellent fit for the large card, and 800 pixels wide as good with possible bars or a crop. The audit reports image_undersized (info) for a card under 1200 pixels wide, and image_oversized (warning) over 500 KB, which is well under X's 5 MB limit and a better target for every platform at once.

For the small summary card, the center of the image is what survives the crop, and the checker's X summary row says to keep text there legible at 120 x 120.

The card exists but not where you looked

The archived documentation says cards built from meta tags "only appear when a Tweet is either expanded in the timeline (on web) or viewed on the Tweet's individual permalink page", and only in limited circumstances in the timeline itself. That text predates X's current interface and I could not confirm it without a signed-in account. If a card does not show where you expect it, open the post's own page before concluding it is broken.

The same document says only one card shows per post, and that media attached to the post takes precedence over any card. A post with an image and a link will not show the link's card.

The Card Validator today

The Card Validator was X's tool at cards-dev.twitter.com/validator: paste a URL, see the card and the crawler's log. The old documentation points to it, and most guides still tell you to use it.

  • The preview was removed in August 2022. Twitter said so on its developer forum, as quoted by the IndieWeb wiki: previews were removed "in favor of using the Tweet Composer form on twitter.com or in the app". The same announcement told people to start a new post and paste the link into the composer, without posting. The card renders there if the URL has the right metadata. A contemporary report adds that entering a URL in the validator no longer refreshed a card.
  • Today the address asks for a login. Requested on 2026-11-24 without an X session, cards-dev.twitter.com/validator and cards-dev.x.com/validator both redirected to a login page. I did not have an X login for this guide, so I cannot tell you what the page shows once you are signed in, whether it still reports crawler errors, or whether it still exists in a useful form.

Treat the composer as the X-side preview, and use a checker that reads your page for everything that comes before it. I could not check whether the composer reads your page fresh or from X's cache, so a wrong card there right after a fix is a reason to try the refresh steps in the next section, not proof that the fix failed.

How X caches cards and how to refresh one

Two sentences from the archived documentation are the whole cache policy. In Getting started: "Content is cached by Twitter for 7 days after a link to a page with card markup has been published in a Tweet." In Troubleshooting, for a post that shows an out-of-date card: "the web crawler re-indexes the meta information on your tag roughly every seven days". Neither page documents a way to purge the cache directly. After the 2022 change, X pointed people to the troubleshooting page's "Refreshing a Card in a Tweet" technique.

Refreshing the card text

That technique, in the documentation's words: add card metadata to a page, post the URL, change the metadata, then take the same URL and run it through a link shortener, and post the shortened URL. The new URL is one X has not seen, so it fetches the page again. The documentation says you can make several variants for repeated testing by adding a placeholder query parameter (?x=test1) or a unique hash (#test1) to the URL before shortening it, which "will generally not affect the page contents".

The shortener is part of the instruction. The documentation does not say that a bare ?v=2 on the page URL gets a fresh fetch, so do not count on it. Try the shortened variant first, and treat anything else as an experiment.

Refreshing the image

The documentation says plainly: "Images referenced in a Card are also cached based on URL", and that this is why images often do not update when the card text does. The fix it gives is to add an extra parameter to the end of the image URL so the crawler treats it as a new image and fetches it again.

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

A new filename or a version in the path does the same job and is easier to keep track of. Whatever you choose, change it each time the card's content changes.

Overwriting the image at the same URL does nothing, because the image cache is keyed on the URL, and purging your own CDN does not touch X's copy.

Whether a post that already shows an old card changes once its cache expires is not something the pages I read state. If an old post matters, post the link again.

Verify your fix

Check the page. The checker reads your page and scores the card's dimensions, file size, format and tags, and has a row for how it fits X's large card and its small one. Enter the page you fixed, or check this guide's own card as an example. Confirm the "Twitter card" check passes with summary_large_image and that the image loads. The platform preview for X is properOG's model of the card, not a render by X, so use it to catch errors and not to judge the exact crop.

Check the site. One page is rarely the only broken one. The site audit reads your sitemap, groups URLs into templates, samples across them, and reports image_missing, image_broken, twitter_card_small, twitter_image_stale, twitter_image_shared, image_oversized and the rest, with a fix for each.

Check what X sees. This is the part no outside tool can do for you. Run the two curl commands in this guide to see the tags and the status code as a client with X's user agent gets them:

curl -s --compressed -A 'Twitterbot/1.0' https://your-site.com/your-page \
  | grep -oE '<meta (property|name)="(og|twitter):[^"]*" content="[^"]*"'

Then paste the URL into a new post on X without sending it. If the card is wrong there and right in the checker, your page is fine and X is serving its cache, so use the refresh steps above. If the composer shows nothing at all, go back to the robots.txt and firewall checks.

If the tags themselves are wrong, fix them at the source. The Next.js guide covers how that framework produces them, and the WordPress and Shopify guides cover those platforms. For Facebook's own cache and debugger, see the Facebook link preview guide.

Frequently Asked Questions

Why is my Twitter card showing a small image instead of a large one?

The card type is summary, or missing. X's documentation says that without twitter:card, a summary card may be rendered, and summary crops the image to a square. Add a twitter:card meta tag with the value summary_large_image to the page head, and check that no framework setting replaces it.

Does X use og:image if there is no twitter:image?

Yes. X's documentation says the card processor checks the Twitter-specific property first and falls back to the Open Graph one, so twitter:image falls back to og:image, twitter:title to og:title and twitter:description to og:description. The card type, twitter:card, is the exception and is not inferred.

What size should a Twitter card image be?

For summary_large_image, X documents an aspect ratio of 2:1 with a minimum of 300 x 157 and a maximum of 4096 x 4096 pixels, under 5 MB, as JPG, PNG, WEBP or GIF. SVG is not supported. For the small summary card the image is 1:1, at least 144 x 144, and cropped to a square.

Is the Twitter Card Validator still available?

Its preview was removed in August 2022, and Twitter told developers to paste the link into the post composer instead. Today the validator address redirects a signed-out visitor to a login page, and the documentation pages that described it no longer resolve, so do not rely on it. Use the composer for X's view of a card.

How long does X cache a Twitter card, and how do I refresh it?

X's documentation says card content is cached for 7 days after a link is posted, and gives no purge tool. Its suggested refresh is to post the page through a link shortener, so X sees a new URL, and to add a parameter to the image URL, because images are cached by URL.

Audit your site

Sample pages across every template in your sitemap and see which ones ship the wrong card, or none. Free, no account needed.

Related guides