Open Graph & Twitter Card Generator
Generate Open Graph and Twitter Card meta tags with a live social preview.
When a link gets shared on social media or messaging apps, the preview card that appears — image, title, and description — isn't pulled from the page's regular title tag but from a separate set of Open Graph meta tags (originally created by Facebook, now used broadly across platforms) and, for X/Twitter specifically, its own Twitter Card tags. Without these, a shared link shows up as a bare, unappealing URL instead of a rich preview card.
This generator produces both Open Graph and Twitter Card tags together from one set of inputs — title, description, canonical URL, and image — since the two overlap enough that maintaining them together avoids inconsistency. A live preview card shows roughly how your link will appear when shared, using your actual image and text, so you can catch an awkwardly cropped image or an overlong title before it goes live.
How to use Open Graph & Twitter Card Generator
- 1
Enter your content details
Fill in title, description, URL, site name, and content type.
- 2
Add your preview image URL
Use an image at least 1200×630px for the cleanest display across platforms.
- 3
Check the live preview
Confirm the card looks right before copying the generated tags.
- 4
Copy the HTML
Paste the generated tags into your page's <head> section.
Features
- Generates both Open Graph and Twitter Card tags together
- Live visual preview of the resulting share card
- Supports website, article, product, and profile content types
- One-click copy of ready-to-paste HTML
Frequently asked questions
Common mistakes to avoid
- Using an image with important content near the edges, which can get cropped differently across platforms.
- Forgetting to update cached previews after changing Open Graph tags on an already-shared URL.
- Leaving the og:url tag pointing at a non-canonical URL, which can fragment social engagement metrics across duplicate links.
Get new tools in your inbox
One email a month with new tools, guides, and updates. No spam, unsubscribe anytime.

