Free Twitter Card Generator
Create perfect Twitter / X card previews in seconds. Choose from 4 card types, see a live preview, and copy ready-to-paste tags. No sign-up required.
Configure Your Card
Generated Twitter Card Tags
<head> of your HTML. Test your card by pasting the URL into a draft tweet, or use the Card Validator. X caches cards โ add ?v=2 to the URL to force a refresh.
What Is a Twitter Card?
A Twitter Card (now officially "X Card") is a rich media preview that appears when a URL is shared on X / Twitter. It shows a title, description, image or video, and sometimes app install info โ all controlled by twitter: meta tags in your page's <head>.
Without Twitter Cards, shared links appear as plain text URLs with no preview. With them, links become visually clickable cards that get 2โ3ร more engagement.
The 4 Twitter Card types
summary_large_imageโ full-width hero image above the title. Best for blogs, articles, product pages. The most popular card type in 2026.summaryโ small square thumbnail next to the title. Good for profile pages, podcasts, news articles where image space is limited.appโ mobile app install card with icons and deep links for iPhone and Android.playerโ embedded video or audio player (YouTube, Vimeo, Spotify, SoundCloud).
The essential twitter: tags
twitter:cardโ required. One of the 4 types above.twitter:titleโ the headline. Aim for 55โ70 characters.twitter:descriptionโ the summary. Aim for 125โ200 characters.twitter:imageโ the picture. Required for summary and summary_large_image.twitter:image:altโ alt text for accessibility. Strongly recommended.twitter:siteโ the @handle of the website / company.twitter:creatorโ the @handle of the content author.
Image size recommendations
- summary_large_image: 1200 ร 630 px (1.91:1 ratio)
- summary: minimum 144 ร 144 px (1:1 ratio)
- Maximum file size: 5 MB
- Formats: JPG, PNG, WEBP, GIF (non-animated)
- URL: must be absolute (
https://โฆ)
Twitter Cards vs Open Graph
Twitter / X reads both twitter: and og: tags. If twitter: tags exist, they take priority. If not, X falls back to Open Graph tags. Best practice: include both so your cards look great everywhere โ Facebook, LinkedIn, WhatsApp, Discord, Slack and X.
How to test your card
- Publish your page with the tags in place.
- Open a new tweet composer on X and paste your URL โ the preview appears automatically.
- Or use the Card Validator (still live for diagnostics).
- If the preview looks wrong, X may have cached an old version โ append
?v=2to your URL to force a fresh scrape.
Common Twitter Card mistakes
- Wrong image size. Images smaller than 144ร144 are ignored. Use 1200ร630 for large image cards.
- Missing twitter:card tag. Without it, X shows nothing โ no card, just a plain link.
- Relative image URLs. X won't resolve
/image.jpg. Always usehttps://yoursite.com/image.jpg. - Image aspect ratio off. A tall portrait image will be cropped to fit 1.91:1 โ plan for a horizontal layout.
- Using uppercase "Twitter". The tag name is
twitter:cardโ lowercase โ even though the platform is X now. - Tags inside the body.
twitter:tags must be inside<head>. - Missing alt text. Not fatal, but X recommends
twitter:image:altfor accessibility and it can improve click-through on some clients.
Frequently Asked Questions
What is a Twitter Card?
What is the difference between summary and summary_large_image?
summary card shows a small square thumbnail to the left of the text. The summary_large_image card shows a full-width hero image above the text. Large image cards get more engagement but take up more space in the timeline.What size should twitter:image be?
summary_large_image, use 1200 ร 630 pixels (aspect ratio 1.91:1). For summary, use a minimum of 144 ร 144 pixels with a 1:1 ratio. Keep images under 5 MB and use JPG, PNG, WEBP or GIF format.Do I need both twitter: and og: tags?
twitter: tags are missing. But to control exactly how your card appears on X, include twitter: tags. Including both maximizes compatibility across all social platforms.How do I test my Twitter Card?
Why isn't my card showing up?
twitter:card tag, (2) image URL not absolute, (3) image smaller than the minimum size, (4) image blocked by robots.txt, (5) X has cached an old version โ append ?v=2 to the URL to force a refresh, or (6) tags inside the body instead of the head.