Twitter Card Meta Tag Generator

Create Open Graph and Twitter Card meta tags for rich link previews on X (Twitter), Facebook, LinkedIn, iMessage, and more.

Card Details

0 / 70
0 / 200

How it works

The generator builds a standardized set of meta tags inside your page's <head>. Open Graph tags (og:title, og:description, og:image, og:url, og:type) form the universal base that Facebook, LinkedIn, Slack, iMessage, Discord and many crawlers read. Twitter/X extends this with its own twitter:card, twitter:site, twitter:creator and twitter:image:alt tags to choose the card layout and improve accessibility. Paste the generated snippet before </head>, publish, and validate with Twitter's Card Validator.

Frequently Asked Questions

What is the difference between Open Graph and Twitter Card meta tags?
Open Graph (og:) tags are the universal standard used by Facebook, LinkedIn, iMessage and many other platforms. Twitter Card (twitter:) tags are Twitter/X-specific enhancements that let you choose the card style (summary, summary_large_image, app, player). When Twitter detects Open Graph tags it uses them automatically, but adding explicit twitter: tags gives you finer control over how your link appears on X.
What image size should I use for Twitter Cards?
For summary_large_image cards, use a 1200×628 pixel image (aspect ratio 1.91:1) with a maximum file size of 5 MB. JPG, PNG, GIF or WEBP formats work. For regular summary cards a square 1:1 image (minimum 144×144, recommended 800×800) displays best. Always include alt text for accessibility.
How do I validate my Twitter Card after publishing?
After publishing the page with the meta tags, use the official Twitter/X Card Validator tool at cards-dev.twitter.com/validator to preview and debug your card. Make sure the URL is publicly accessible (no robots.txt block, no login wall) and that the image URL is reachable. Clear caches on your CDN if the card doesn't update immediately.

Related Tools

Free tools by TUNA — energy supply from vetted manufacturers