Open Graph & Twitter Card Generator - Social Shares That Look Right
A shared link with no image and a random title gets ignored. Fill in the fields, check the preview, and paste tags that make every share look deliberate.
Card preview
How to use the Open Graph & Twitter Card Generator
- Enter the title and description you want shown on social platforms.
- Add the page URL and an image URL - 1200×630 pixels is the standard social size.
- Choose og:type and the Twitter card style.
- Check the card preview, then copy the block into your page <head>.
How it works
Open Graph tags (og:title, og:description, og:image, og:url, og:type) are read by Facebook, LinkedIn, WhatsApp and most chat apps; Twitter Card tags give X its own fields, falling back to the OG values when a twitter: tag is absent - which is why this generator emits both, mirroring title, description and image. All values are attribute-escaped. The preview approximates the large-image card layout; exact cropping varies by platform, which is why the 1200×630 (1.91:1) image size is recommended - it is the ratio every major platform accepts without cutting off the sides.
Frequently Asked Questions
Is this generator free?
Yes - completely free, no sign-up.
What image size should I use?
1200×630 pixels (1.91:1). It displays correctly on Facebook, LinkedIn and X without awkward cropping.
Why both OG and Twitter tags?
X reads twitter: tags first and falls back to OG tags. Emitting both guarantees the intended title, description and image everywhere.
My share preview is stale - why?
Platforms cache previews. Use Facebook's Sharing Debugger or X's Card Validator to force a re-scrape after updating tags.
Is anything uploaded?
No. Tags are generated in your browser; the preview image loads directly from the URL you enter.
Related Developer Tools
Meta Tag Generator
Generate a ready-to-paste HTML meta block - title, description, robots, canonical - with a SERP-style preview.
Open Graph & Twitter Card Generator
Build Open Graph and Twitter Card tags with a card preview, so shared links look right everywhere.
Robots.txt Generator
Build a valid robots.txt with per-agent allow and disallow rules and a sitemap line.