What Are Twitter Cards?
Twitter Cards (now X Cards) are a set of meta tags that tell X how to render a rich preview when someone shares your URL. Without them, your link appears as bare text. With them, you get a card with a title, description, image and site attribution — dramatically increasing click-through rate.
Cards are used by X (Twitter), and sometimes by Slack, WhatsApp, Discord and other services that read twitter:* tags. Adding them to your pages is one of the highest-ROI SEO and social tricks available.
The Four Card Types
| Type | What It Shows | Best For |
|---|---|---|
summary | Small square image on the left, title + description on the right | Compact previews, product pages, author bios |
summary_large_image | Full-width 2:1 banner image on top, then title + description | Blog posts, articles, hero images (most popular) |
app | App icon + name + rating; deep links into iPhone/iPad/Android app | Mobile app landing pages |
player | Embedded video/audio player | Video pages, podcasts, streaming content |
Required Meta Tags
Every card needs at minimum:
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:title" content="Your Page Title"> <meta name="twitter:description" content="Your description"> <meta name="twitter:image" content="https://example.com/image.jpg">
Everything else is optional but improves the card. The full set includes:
twitter:site— your @handle (site-level attribution)twitter:creator— content author's @handletwitter:image:alt— image alt text for accessibilitytwitter:site:id/twitter:creator:id— numeric IDs
Image Specifications
| Card Type | Recommended | Minimum | Max File |
|---|---|---|---|
| summary_large_image | 1200 × 628 px (1.91:1) | 600 × 314 px | 5 MB |
| summary | 400 × 400 px (1:1) | 144 × 144 px | 5 MB |
| app | 800 × 418 px | — | 5 MB |
| player | 1920 × 1080 px | — | 5 MB |
Format: JPG, PNG, WEBP or GIF (non-animated, first frame). URL must be absolute HTTPS.
OpenGraph Fallback
X prioritises twitter:* tags. When those are absent, it falls back to og:* tags (used by Facebook and LinkedIn). It's best practice to include both sets — with matching values — for maximum consistency across all platforms.
How to Test Your Cards
- X Card Validator —
cards-dev.twitter.com/validator(may be limited in some regions). Paste your URL and validate. - Manual test: compose a tweet, paste your URL, and see the preview before posting. Then delete the draft.
- Force refresh: if the card is cached, append
?v=2to the URL or wait — X caches aggressively. - Third-party: OpenGraph.xyz, metatags.io — both render X cards using the same meta tags.
Common Mistakes
- Relative image URL. X's crawler can't resolve
/images/og.jpg. Always use the full HTTPS URL. - Image too small.
summary_large_imagebelow ~600px will be downscaled and often dropped. - Wrong aspect ratio. A 1:1 image on a
summary_large_imagecard gets cropped aggressively — aim for 2:1 or 1.91:1. - HTTP instead of HTTPS. X requires HTTPS for card images.
- Missing
twitter:card. Without it, X defaults to no card — no image, no title, just a bare link. - Duplicate tags. Conflicting cards can confuse the crawler. Make sure your CMS or theme doesn't add its own tags.
- Stale cache. After updating tags, use the validator or append a query string — X's cache holds for days otherwise.
- Special characters not escaped.
&,"in title/description need HTML entity escaping.
How to Use This Generator
- Pick a card type from the chips at the top.
- Fill in the fields: title, description, image URL, image alt, site handle, creator handle.
- Watch the live preview on the right — it renders like the actual X card.
- Validate the image using the Image Validator tab to check dimensions and file size.
- Copy the HTML and paste into your page's
<head>. - Test on X before publishing — compose a tweet with the URL to see the card.
Pro Tip: Keep twitter:card and og:type aligned. If X shows a summary_large_image, your Facebook/LinkedIn preview should also use a large image (via og:image of the same dimensions). Consistency across all platforms builds brand recognition and looks professional everywhere.
⚠️ AI-Generated Tool Notice: This generator was built with AI assistance. Card previews are simplified mock-ups. X's actual rendering can differ. Always verify with the X Card Validator or by drafting a real tweet before publishing.