Twitter / X Card Generator
Generate Open Graph and X Card tags, validate URLs, and preview a page’s social share card.
Page and card details
Generated meta tags
<meta property="og:type" content="website"> <meta property="og:url" content="https://example.com/article"> <meta property="og:title" content="My Awesome Article"> <meta property="og:description" content="A clear description of the page shared on social media."> <meta property="og:site_name" content="Example Site"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:site" content="@username"> <meta name="twitter:title" content="My Awesome Article"> <meta name="twitter:description" content="A clear description of the page shared on social media.">
Example Site
My Awesome Article
A clear description of the page shared on social media.
Approximation only: platform crops, truncation, and cached previews can differ.
What are social card meta tags?
Open Graph and X Card meta tags describe a page’s title, summary, image, and sharing layout so social platforms can build a link preview.
How to use this generator
- Enter the public page URL, title, and short description.
- Add an absolute image URL and descriptive alt text.
- Choose website or article, then select an X card layout.
- Review the approximate preview and copy or download the tags.
We do not fetch your page URL. Your browser requests any preview image directly from its host. See the Open Graph Generator for a related workflow.
Open Graph and X Card generator features
Build social metadata for a webpage without sending your content to a server.
- Generate the core Open Graph title, description, URL, type, image, alt text, and site name tags.
- Add X Card tags with summary or large-image card selection and optional site and creator handles.
- See a responsive, approximate preview update while editing fields.
- Validate that page and image URLs use HTTP or HTTPS and safely escape values in generated HTML.
- Copy or download the complete tag block; form values stay in your browser.
Open Graph and X Card generator FAQ
What is the difference between Open Graph and X Card tags?
Open Graph tags describe a page for broad social sharing. X-specific twitter: tags can select an X card layout and override the Open Graph title, description, or image.
Will this preview exactly match every social platform?
No. This is an approximate visual preview. Platforms may crop images, truncate text, apply their own layout, or show cached metadata.
Does this tool upload my page or image URL?
No. The generator runs in your browser and does not fetch the page or image. The image preview is loaded directly by your browser from the URL you enter.
What image size should I use?
A 1200 × 630 image is a useful general-purpose Open Graph starting point. LinkedIn recommends 1200 × 627 pixels. Always check the current requirements of the platform you target.