The brand or publication account
The author's account (optional)
0 / 70 characters
0 / 200 characters
At least 300 x 157, 1200 x 600 (2:1) is ideal, under 5 MB
0 / 420 characters
X retired its Card Validator. To test for real, paste the link into a new post draft and look at the card before you publish.
<meta name="twitter:card" content="summary_large_image" />
How to use
Auto-fill from a URL or try the sample
Paste your page address and click Auto-fill. The tool reads existing twitter tags first and uses og tags or the page title where they are missing. Click Try sample to see a finished card.
Pick a card type and edit the fields
Choose summary_large_image, summary, player or app, then fill in the fields. Player and app cards show their own fields, and a warning lists anything the chosen type still needs.
Check the image and copy the tags
Read any warnings under the preview, such as a file over 5 MB or an image far from a 2:1 shape. Choose HTML or Next.js metadata, then press Copy or Download and add it to your page.
Why Twitter (X) Card Generator
- All four X card types, with the extra fields player and app cards need.
- Counters for X's 70 character title, 200 character description and 420 character alt text limits.
- Image checks for status, file type, file size and dimensions.
- HTML or Next.js metadata output, and the @ added to handles if you leave it out.
Twitter card types and image sizes
X supports four card types, and this generator writes all of them. Summary and summary_large_image suit ordinary web pages. Card images can be JPG, PNG, WEBP or GIF under 5 MB; for an animated GIF only the first frame is used, and SVG is not supported.
If you already have a 1200 x 630 Open Graph image, it works for summary_large_image; X crops it slightly to fit the 2:1 frame.
| Card type | Layout | Image |
|---|---|---|
| summary | Small square thumbnail beside the title | At least 144 x 144 px, 1:1 |
| summary_large_image | Wide image above the title | At least 300 x 157 px, 2:1, such as 1200 x 600 |
| app | App name, icon and store link | Uses the store icon; needs app IDs |
| player | Inline video or audio player | Needs a player URL, width and height |