TagsGenFree Tag & SEO Tools

X Cards and How to Control Your Link Preview on X

X (Twitter)Updated November 29, 20264 min readBy TagsGen Team
X Cards and How to Control Your Link Preview on X
Quick answer

Add a twitter:card meta tag such as summary_large_image to your page. X reads twitter: tags first and falls back to Open Graph tags like og:title and og:image when a twitter: tag is missing.

When someone shares your link on X, a card with an image and title makes it stand out. X builds that card from a few meta tags on your page.

The card types most sites use

twitter:card valueLooks like
summarySmall square image beside the title
summary_large_imageLarge image above the title

The tags

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Page title">
<meta name="twitter:description" content="One clear sentence">
<meta name="twitter:image" content="https://example.com/share.jpg">

X documents that if twitter:title, twitter:description or twitter:image are missing, it uses the matching Open Graph tags. Many sites set only twitter:card and let Open Graph tags do the rest.

Make them with one tool

The Open Graph Generator writes both sets of tags at once, with a preview.

If the card does not show

  • Check the image URL is public and uses https.
  • Check there is only one set of tags (two plugins can clash).
  • Make sure your robots.txt does not block X’s crawler from the page or image.

Which card type to choose

CardLooks likeBest for
summarySmall square image beside the titleProfiles, simple pages, logos
summary_large_imageWide image above the titleArticles, products, landing pages

Most blogs and shops use summary_large_image because the big image catches attention in the timeline.

The image

For a large image card, use a wide image with a roughly 2 to 1 ratio, such as 1200 by 600 pixels, or reuse a 1200 by 630 Open Graph image, which X crops slightly. Keep important text and faces away from the edges. Use JPG, PNG or WebP, keep the file reasonably small, and give the image a full https address. Add twitter:image:alt with a short description for people using screen readers.

A minimal setup

If your page already has good Open Graph tags, you only need one extra line: twitter:card set to summary_large_image. X will use og:title, og:description and og:image for the rest. Add twitter:site with your X username if you want the card to credit your account.

How to test your card

X no longer offers a public card preview tool. The simplest test is to start writing a post with your link and look at the preview in the composer before you publish. If the preview is missing or wrong:

  1. Open the page source and confirm the twitter:card tag is present once.
  2. Check that the image URL opens in a browser without a login.
  3. Make sure your firewall or security plugin does not block X’s crawler.
  4. Check robots.txt does not block the page or image.
  5. Wait a little and try again, because X caches previews.

WordPress tips

Most SEO plugins output both Open Graph and X card tags. Check one post’s source to confirm there is a single set of each. If you use a separate social sharing plugin as well, turn off its meta tags to avoid duplicates. Set a featured image on every post so the card always has a picture.

Common mistakes

  • Using a relative image path such as /images/photo.jpg instead of a full URL.
  • A tiny image, which X may show as a small card or not at all.
  • The same generic image and title on every page.
  • Forgetting that links count as 23 characters in the post itself. See how X counts characters.

Generate both sets of tags with the Open Graph generator, and if Facebook shows the wrong preview too, follow how to fix the Facebook link preview.

Frequently Asked Questions

Do X Cards cost anything?
No. They are free meta tags on your own page.
Will X Cards help my SEO?
Not directly. They make shared links more attractive, which can bring more clicks.
Do I need both Open Graph and X card tags?

Not always. X falls back to Open Graph tags, so a twitter:card line plus good og tags is often enough.

Why does X show no image for my link?

The image may be missing, too small, blocked by a firewall or login, or set with a relative path. Check the page source and the image URL.

How long does X keep an old preview?

X caches previews for a while. After fixing your tags, wait and try the link again in a new post draft.

Sources

Checked November 2026. Platforms change their rules, so check the linked page if a number looks different in your app.

TagsGen Team

We write plain guides on tags, hashtags and simple SEO, and check facts against each platform's own help pages.

Keep reading