About the Twitter Card Preview tool
Links shared on X (formerly Twitter) are shown as cards built from twitter: meta tags, with Open Graph tags as a fallback. The twitter:card value decides the layout: summary shows a small square thumbnail beside the text, while summary_large_image shows a wide image across the post. Choosing the wrong type, or supplying an image with the wrong shape, makes a link easy to scroll past.
This Twitter card preview renders a mock post containing your card. Pick the card type, then enter the title, description, image URL, image alt text, page URL and the twitter:site and twitter:creator handles. You can even edit the post text above the card. A local image option lets you test artwork straight from your device without uploading it.
Checks warn when the title passes 70 characters, the description passes 200, the image is missing or not an absolute https URL, and remind you of the image ratio and 5 MB size limit for the chosen card. The matching tags are generated with handles normalised to start with @ and all values HTML-escaped. X retired its own public card validator preview, so a local mock-up like this is a quick way to check before posting.
How to use Twitter Card Preview
- Choose a “Card type”: summary_large_image or summary.
- Fill in twitter:title, twitter:description and twitter:image URL, or click “Preview a local image”.
- Add twitter:image:alt, the page URL and your twitter:site and twitter:creator handles.
- Check the “Post preview” and the “Checks” list, and adjust until the card looks right.
- Copy the “Twitter card tags” into your page's <head>.
Features
Both card layouts
Switch between summary and summary_large_image to compare them instantly.
Realistic post mock-up
The card sits inside an editable post with your handle, like it would in a timeline.
Rule checks
Title and description lengths, https image URL and image ratio guidance for each card type.
Handle clean-up
Adds the missing @ to site and creator handles automatically.
Private image testing
Preview a local image file without uploading it anywhere.
When to use it
- Decide whether a software blog post looks better with a large image or a summary card.
- Check that an announcement's title is not cut off on X before scheduling the post.
- Add accessible image alt text to share cards for a company website.
- Generate twitter: tags for a static site that has no SEO plugin.
Frequently asked questions
What is the difference between summary and summary_large_image?
summary shows a small square image beside the title. summary_large_image shows a wide 2:1 image above or behind the title, which usually draws more attention.
What image size does a Twitter card need?
For summary_large_image use a 2:1 ratio, at least 300 × 157 pixels; 1200 × 628 works well. For summary use a square image at least 144 × 144. Images must be under 5 MB.
Does X still have a card validator?
X removed the preview from its Card Validator in 2022. You can check cards by composing a post, or use a local preview like this one before publishing.
Do I need twitter:title if I already have og:title?
No. X falls back to og:title, og:description and og:image. You do need twitter:card to choose the large image layout.
Why does X show only the domain under my image?
On most current X apps, large-image cards show the title as an overlay and the domain below; the description is not displayed. Summary cards still show it.