twitter:card · og:image · summary_large_image
X (Twitter) Card Generator & Preview
Write the meta tags that decide how your link looks on X, see a preview before you post, and check the image against X's limits. Free, no sign-up, and nothing leaves your browser.
- All four card types
- Matching Open Graph tags
- Light, dark, desktop, mobile preview
Drawn mockup, not a screenshot of X. Layout follows X's current link cards (image with the headline on it, domain below); exact sizes and cropping vary by app version.
Your tags
Paste inside <head>. Then post the URL in the X composer (you do not need to publish) to see the real card.
How it works
Fill in the card
Pick a card type and type the title, description and image URL. The tool writes matching twitter: and og: tags.
Check the preview
A drawn mockup shows roughly how X lays the card out, in light or dark, desktop or phone width.
Paste and test
Copy the tags into your page head, deploy, then paste the URL into the X post composer to see the real card.
Five free card tools
All toolsCard Meta Tag Generator
Fill in a form, get twitter: and og: tags that match, and see a drawn preview in light or dark, desktop or mobile.
Card Preview & Meta Inspector
Paste a page's head HTML. See the card X would likely build, which tags it falls back to, and what is missing.
Card Image Checker & Resizer
Check a local image against card limits: ratio, pixel size, 5 MB, format. Crop to 2:1 or 1:1 and download.
OG Image Maker
Type a title, pick a template and colors, download a 1200x630 or 1200x675 PNG. Drawn on a canvas on your device.
Framework Snippets
Card tags for plain HTML, Next.js, Astro, Hugo and WordPress (Yoast and Rank Math), filled with your values.
The four card types at a glance
Card types explained| twitter:card | Looks like | Image | Use it for |
|---|---|---|---|
summary_large_image | Wide image with the headline on it, domain below | 2:1, min 300x157, under 5 MB | Articles, product and tool pages: the usual choice |
summary | Small square thumbnail beside the text | 1:1, min 144x144, under 5 MB | Profiles, docs and pages without a good wide image |
player | Image with play button; plays in an iframe on supported clients | Match the player, at least 68,600 pixels | Video and audio you host yourself |
app | App name, icon and store details | Taken from the store listing | Linking to an app in the App Store or Google Play |
Sources: X's Cards markup reference and card type pages, checked November 2026. All formats: JPG, PNG, WEBP or GIF (first frame). No SVG.
Get your link card right on X (Twitter)
Quick preview tips
- Use summary_large_image for articles and tool pages; X shows the image wide with the headline on it.
- Keep the important part of the image away from the bottom-left corner, where X places the headline.
- Set twitter:image:alt. Up to 420 characters; screen readers read it on X.
- After changing tags, test with a new query string, such as ?v=2, so you do not see a cached card.
See what people post about cards
These searches open the latest posts on x.com.
Post your link on X
Pick a sample, add your URL and open the X composer. Counted the way X counts: every link takes 23 characters.
0 / 280Open in X
TwitterCard is not affiliated with X Corp. Links open x.com; nothing on this page connects to your account.
Guides
All guides- Basics
What are X (Twitter) Cards?
X Cards are the link previews X builds from a page's meta tags. How they work, what Twitterbot reads, which tags you need and how to see yours.
5 min read - Card types
X Card types explained
The four X Card types side by side: summary, summary_large_image, player and app, with required tags, image rules and the status of each in 2026.
4 min read - Markup
twitter: vs og: tags: the fallback rules
How X chooses between twitter: and Open Graph tags, which twitter: tags have no og: fallback, name vs property, and the shortest head that still works.
5 min read - Troubleshooting
Why is my X card not showing?
Twelve causes of missing or wrong X (Twitter) cards, in the order worth checking: tags, image URL and size, robots.txt, redirects, firewalls and the card cache.
5 min read - Images
X Card image sizes: the 2026 cheat sheet
Every X Card image rule in one place: 2:1 and 1:1 ratios, minimum and maximum pixels, the 5 MB limit and formats, plus Open Graph sizes for other platforms.
4 min read - Caching
How X caches cards and how to refresh one
Why X keeps showing an old card image or title, how long the card cache lasts, and the reliable ways to get a fresh card without the old validator.
4 min read
Frequently asked questions
What is an X (Twitter) Card?
An X Card is the preview X builds when someone posts a link: an image, a headline and the site's domain. The page controls it with twitter: meta tags in its HTML head, and X falls back to Open Graph tags (og:title, og:description, og:image) when twitter: tags are missing.
Does X still have a Card Validator?
Not as a preview tool. In August 2022 X (then Twitter) removed the preview from the Card Validator and pointed developers to the post composer instead. To test a card today, paste the URL into a new post on x.com or in the app and look at the preview before posting. You do not have to publish the post.
What image size should I use for summary_large_image?
Use a 2:1 image. X's documentation lists a minimum of 300x157 and a maximum of 4096x4096 pixels, under 5 MB, as JPG, PNG, WEBP or GIF (only the first frame of an animated GIF is used; SVG is not supported). 1200x600 is a safe 2:1 choice; many sites use one 1200x630 image for every platform and accept a slight crop on X.
Why does my old image still show after I changed it?
X caches card data. Its troubleshooting guide says the crawler re-reads a page's tags roughly every seven days, and images are cached by URL. Give the new image a new file name or add a query string to its URL, and test with a slightly different page URL to see the change sooner.
Do these tools upload my page or image anywhere?
No. The generator, inspector, image checker, OG image maker and snippets all run as JavaScript in your browser. Images are read with the File API and drawn on a canvas on your device. The tools do not fetch other websites, so the inspector asks you to paste the head HTML instead of a URL.
Is this site made by X?
No. TwitterCard is an independent site and is not affiliated with X Corp. The names X and Twitter are used because the card markup is still called Twitter Card markup and its tags still start with twitter:.