
Twitter Card Size, Tags & Examples
Learn Twitter Card image sizes, card types and required meta tags. See examples, fix missing previews and validate links for X before sharing.
Use twitter:card to choose the X card layout, then provide a clear title, description, and public image through Twitter-specific tags or Open Graph fallbacks.
For most articles and product pages, summary_large_image with a 1200×630 source image is a practical starting point.
Use the Twitter Card Validator to inspect the live HTML, preview a representative card, and find missing or inaccessible metadata before sharing the URL.
Essential Twitter Card Tags
This is a robust baseline for an article, landing page, or product page:
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="A specific title for this page" />
<meta name="twitter:description" content="A concise description of what the reader will find." />
<meta name="twitter:image" content="https://example.com/social-card.jpg" />
<meta name="twitter:image:alt" content="Description of the social card image" />
You can also add twitter:site or twitter:creator when the page has a relevant X account.
Do not invent an account or reuse an unrelated handle simply to fill the tag.
Twitter Tags and Open Graph Fallbacks
Keep a complete Open Graph block because Facebook, LinkedIn, messaging apps, and many other crawlers use it. Explicit Twitter tags are useful when X should use a different crop or description.
<meta property="og:type" content="article" />
<meta property="og:title" content="A specific title for this page" />
<meta property="og:description" content="A concise description of what the reader will find." />
<meta property="og:image" content="https://example.com/social-card.jpg" />
<meta property="og:image:alt" content="Description of the social card image" />
<meta property="og:url" content="https://example.com/article" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="A specific title for X" />
<meta name="twitter:description" content="A concise description for the X card." />
<meta name="twitter:image" content="https://example.com/x-card.jpg" />
<meta name="twitter:image:alt" content="Description of the X card image" />
Use property="..." for Open Graph tags and name="..." for Twitter tags.
Render the tags in the initial HTML response because social crawlers may not execute client-side JavaScript.
Summary and Summary Large Image Cards
Use summary when a compact square thumbnail is intentional.
Use summary_large_image when the image is central to the shared link.
The layout X ultimately shows is controlled by X and can vary by surface, device, account state, or product change. A local preview is therefore representative, not pixel-perfect.
Player and app cards have additional fields and platform requirements. Only implement them when the media player or app destination is genuinely part of the page experience.
Twitter Card Image Size
A 1200×630 image is a practical cross-platform source for a large landscape card. It is close to the common 1.91:1 social-card ratio and gives platforms enough resolution for larger feed placements.
For reliable delivery:
- Use an absolute HTTPS URL.
- Return a real image content type such as
image/jpeg,image/png, orimage/webp. - Keep the file reasonably small and fast to fetch.
- Avoid expiring signed URLs, authentication, cookies, and hotlink protection.
- Keep important text, faces, and logos away from the edges.
- Check that the image remains legible at mobile card sizes.
See the Open Graph image size guide for crop-safe areas, formats, and delivery tradeoffs.
Next.js Twitter Metadata Example
Next.js can render the metadata in the initial document through its Metadata API:
import type { Metadata } from 'next';
export const metadata: Metadata = {
title: 'A specific title for this page',
description: 'A concise description of what the reader will find.',
openGraph: {
title: 'A specific title for this page',
description: 'A concise description of what the reader will find.',
url: 'https://example.com/article',
images: [
{
url: 'https://example.com/social-card.jpg',
width: 1200,
height: 630,
alt: 'Description of the social card image',
},
],
},
twitter: {
card: 'summary_large_image',
title: 'A specific title for X',
description: 'A concise description for the X card.',
images: ['https://example.com/social-card.jpg'],
},
};
If metadata depends on page data, generate it on the server with generateMetadata.
Confirm the final tags in page source after deployment rather than checking only the browser inspector.
How to Validate a Twitter Card Now
The former public X Card Validator is no longer available as a standalone checker. The old endpoint currently redirects to X sign-in, so instructions that tell anonymous users to paste a URL there are outdated.
Use this workflow instead:
- Run the final public URL through the LinkGlimpse Twitter Card Validator.
- Confirm the page response, redirects, canonical URL, robots directives, card type, title, description, image URL, and image response.
- Fix the live metadata and deploy the change.
- Re-run the same URL and verify that the extracted values changed.
- Share the final canonical URL on X and allow for X-controlled cache behavior.
LinkGlimpse is independent of X. It cannot reproduce X's private renderer or force X to refresh a cached card.
Common Twitter Card Problems
| Problem | What to inspect | Practical fix |
|---|---|---|
| No image | twitter:image, og:image, image response |
Use a public absolute URL that returns a supported image response. |
| Wrong image | Duplicate tags, CMS output, cached scrape | Keep one authoritative tag set and verify the deployed HTML. |
| Small card | twitter:card value |
Use summary_large_image when a large landscape card is intended. |
| Old title or description | Live source versus platform cache | Prove the live tags changed, then allow for platform recrawl timing. |
| Card disappears after deployment | Redirects, auth, robots, WAF rules | Make the final page and image fetchable without cookies or challenges. |
| Preview differs from the checker | Platform rendering choices | Treat previews as representative and protect important content from cropping. |
Twitter Card QA Checklist
twitter:cardis present and uses the intended card type.- The title, description, and image are present explicitly or through reliable Open Graph fallbacks.
- The page and image return successful public responses.
- The image URL is absolute, HTTPS, stable, and fast.
- The initial HTML contains one authoritative set of metadata.
- Redirects end at the expected canonical URL.
- The image has useful alt text.
- The deployed source matches the version you intended to publish.
- The preview is treated as representative rather than an exact X rendering.
Measure the Result Without Inventing a Benchmark
Use tagged campaign URLs when you need to attribute traffic from specific X posts. Compare link clicks, engaged sessions, and downstream conversions against your own prior posts with similar audiences and distribution.
Do not assume that a card type, image, or character count causes a fixed engagement lift. Audience, post copy, distribution, timing, and the page itself all affect the result.
Sources and Review Method
- Open Graph protocol for the shared metadata vocabulary.
- Next.js Metadata API for server-rendered framework implementation.
- LinkGlimpse methodology for fetching, scoring, representative previews, and limitations.
- Former X Card Validator endpoint, checked on October 16, 2026 and observed redirecting to sign-in.
This guide was reviewed on October 16, 2026.
Twitter Card FAQ
What is the difference between summary and summary_large_image?
summary is intended for a compact card with a square thumbnail.
summary_large_image requests a more prominent landscape image.
Can X use Open Graph tags?
Open Graph tags provide useful shared metadata across platforms. Add explicit Twitter tags when you need to choose the card type or provide X-specific copy and imagery.
Can a validator clear X's cache?
No independent validator can force X to refresh its private cache. A validator can prove that the public page now serves the intended metadata.
Why does the card still show old content?
First compare the deployed HTML and image response with the values the validator extracts. If those are current, the remaining difference is likely controlled by X's own recrawl or rendering behavior.
Do Twitter Cards improve search rankings?
Twitter Card tags are social-preview metadata, not a direct search-ranking control. Measure search, referral traffic, and on-site outcomes separately.
Related: Twitter Card preview not showing and complete Open Graph tag templates.
Written by LinkGlimpse Team
Published on
Updated on