X / Twitter Card Preview Tool

See how your link will look when you post it on X. Check which meta tags X reads, and fix your card before you share it.

Preview Your Link

Preview Your Link

Enter a URL. The tool fetches the page, reads its Twitter and Open Graph meta tags, and shows the card the way X shows it.

What Is a Twitter Card?

A Twitter card is the preview that X shows when someone posts a link. Instead of a bare URL, people see an image, a title and the name of your site.

X builds the card from meta tags in the <head> of your page. If the tags are missing or wrong, your link shows as plain text, or with the wrong image, and gets fewer clicks.

X has four types of card:

  • Summary card with large image (summary_large_image): a wide image with the title on it. Use this for most pages.
  • Summary card (summary): a small square image beside the title and description.
  • Player card (player): a video or audio player in the post.
  • App card (app): a link to download a mobile app.

How to Add Twitter Card Meta Tags

Add these tags inside the <head> of each page. Change the values for each page, and use a full URL for the image.

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@yourbrand">
<meta name="twitter:title" content="Your page title">
<meta name="twitter:description" content="A short summary of the page.">
<meta name="twitter:image" content="https://www.example.com/images/card.jpg">
<meta name="twitter:image:alt" content="What the image shows">

Copy the Tags

twitter:card
The card type. Use summary_large_image for a large image, or summary for a small one. X needs this tag.
twitter:site
The @username of your site on X. X does not show it on the card, but it links the card to your account.
twitter:title
The title of the card. Keep it under about 70 characters, or X cuts it off.
twitter:description
A summary of the page, up to 200 characters. The summary card shows it; the large image card does not.
twitter:image
The full URL of the card image. See the image sizes below.
twitter:image:alt
A text description of the image for screen readers, up to 420 characters.

If your pages already have Open Graph tags, you only need twitter:card. X uses og:title, og:description and og:image when the Twitter tags are missing. The preview tool above shows which tag X uses for each field.

Twitter Card Image Size and Requirements

Use the right size, and X shows your image sharp and without awkward cropping.

Card typeRecommended sizeAspect ratioMinimum sizeMaximum file size
Summary card with large image1200 × 630 px1.91:1 (up to 2:1)300 × 157 px5 MB
Summary card800 × 800 px1:1144 × 144 px5 MB
  • Formats: JPG, PNG, WEBP and GIF. X shows only the first frame of an animated GIF, and does not support SVG.
  • Maximum dimensions: 4096 × 4096 px.
  • Full URL: the image URL must start with https://. X does not read relative paths such as /images/card.jpg.
  • Keep text in the center: X can crop the edges of the image, so do not put important text or logos near the edges.
  • One image for every network: a 1200 × 630 px image also works for Facebook, LinkedIn, Slack and Discord.

Where Is the Twitter Card Validator?

The X Card Validator no longer shows previews. X removed the preview in 2022. This tool does the same check: enter your URL, and it shows your card the way X shows it. It also lists the meta tags that X reads, and the ones that are missing.

Why Is My Twitter Card Not Showing?

The common problems with Twitter cards, and how to fix them

Why does X show no card for my link?

X needs at least a title to build a card. Check that the page has a twitter:title or og:title tag, and a twitter:card tag. Preview the URL above: the Tags X will use panel shows which tags X found. Also check that the tags are in the HTML that the server sends. X does not run JavaScript, so tags that a script adds after the page loads are not seen.

Why is my Twitter card image not showing?

The usual causes are:

  • The image URL is relative (/images/card.jpg). Use the full URL, with https://.
  • The file is larger than 5 MB, or it is an SVG. X supports JPG, PNG, WEBP and GIF.
  • The image server blocks requests that do not come from your own site (hotlink protection), or robots.txt blocks the image path.
  • The URL needs a login, or redirects to a page that is not an image.
Why does X still show my old image or title?

X caches the card for a link, usually for about seven days. After you change your tags, the old card can stay. To get a new card now, post the link with a query string added, for example https://www.example.com/page?v=2. X sees this as a new URL and fetches the page again. The X Card Validator no longer shows previews or clears the cache.

Why does X show a small card instead of a large image?

Set <meta name="twitter:card" content="summary_large_image">. If the twitter:card tag is missing, or its value is summary, X shows the small summary card with a square image.

Can my site block X from reading the card?

Yes. X fetches the page with a crawler called Twitterbot, and it obeys robots.txt. Make sure that robots.txt does not block Twitterbot from the page or from the image. Bot protection (for example a challenge page from your CDN), login walls and long redirect chains also stop the crawler.

Does X use Open Graph tags?

Yes. When a twitter:* tag is missing, X uses the Open Graph tag for the same field: og:title, og:description and og:image. If your pages already have Open Graph tags, you only need to add twitter:card.

Is this Twitter card preview tool free?

Yes. The tool is free, with no signup and no limit. Enter any public URL to see its card.

Auto-Generate Twitter Card Images with Bannerbear

Design one template, and Bannerbear makes a custom card image for every page of your site, with its own title, author and photo.

Explore the Image API

A card with a custom image gets more attention than a generic logo. But making an image by hand for every blog post or product is slow. Bannerbear fills your template with the page's data, and gives you an image URL to put in twitter:image and og:image.

Step-by-step guides:

Sharing on other networks too? Check your link with the Facebook preview tool and the LinkedIn preview tool.

Need an image for your link? Make one in your browser with the free Open Graph image generator.

Start a Free Trial

Start a free trial with 30 API credits, no credit card required

Resize Video
Add Intro Animation
Add Subtitles

Get Started for Free