Open Graph generator with live preview
Create Open Graph and Twitter Card meta tags, see exactly how your link will look on Facebook, X, and LinkedIn, and copy production-ready code.
- No signup required
- Runs in your browser
- Generates OG + Twitter tags
Your page details
Fill these in and copy the generated tags. Everything runs in your browser.
og:title - the headline of the share card
og:description
og:url - the canonical URL
og:image - absolute URL, 1200x630px recommended
og:site_name
twitter:site (optional)
Validation
- og:title is missing - it's the headline of your share card.
- og:description is missing - most platforms show a description under the title.
- og:image is missing - without it, shares appear as a plain text link.
- og:url is missing - set it to the canonical URL of the page.
Generated meta tags
<!-- Primary --> <meta property="og:type" content="website" /> <!-- Twitter / X --> <meta name="twitter:card" content="summary_large_image" />
Paste these into the <head> of your page. Already live? Audit it with our Meta Tag Checker.
Launching a new site or page?
We build fast, share-ready websites with social tags, schema, and analytics done right - so every link looks sharp and tracks correctly.
Talk to an engineerQuick answer: Open Graph tags are meta tags in your page's <head> that control how a link looks when shared - title, description, and preview image.
This generator builds both Open Graph and Twitter Card tags, shows a live preview for Facebook, X, and LinkedIn, and validates common mistakes. Paste the output into your <head> before publishing.
Essential Open Graph tags
| Tag | Purpose | Required? |
|---|---|---|
| og:title | Headline of the share card | Yes |
| og:image | Preview image (1200x630px) | Yes |
| og:description | Summary under the title | Recommended |
| og:url | Canonical URL of the page | Recommended |
| og:type | website, article, product | Optional |
| twitter:card | summary_large_image for big previews on X | Recommended |
Recommended image sizes by platform
| Platform | Ideal dimensions | Ratio |
|---|---|---|
| Facebook / LinkedIn | 1200x630px | 1.91:1 |
| X (large image card) | 1200x628px | 1.91:1 |
| X (summary card) | 144x144px+ | 1:1 |
How to add Open Graph tags (step by step)
- Fill in your details above: title, description, canonical URL, and a 1200x630 image URL.
- Copy the generated tags - both Open Graph and Twitter Card.
- Paste them into the
<head>of the page, using an absolutehttps://URL forog:image. - Validate with Facebook's Sharing Debugger or LinkedIn's Post Inspector.
- Force a re-scrape in the debugger so the new card appears immediately rather than waiting for the cache to expire.
Why Open Graph tags matter
When someone shares your link in a post, a message, or a Slack channel, the platform scrapes your page and builds a preview card.
Without Open Graph tags, that card is a gamble: the platform guesses a title, grabs whatever text it finds, and often shows no image or the wrong one.
A bare, image-less link gets dramatically fewer clicks than a rich card with a compelling image and headline.
Open Graph tags put you in control of that first impression.
Because a single shared post can reach thousands of people, the preview card is some of the highest-leverage "design" on your whole site - and it takes five minutes to get right.
The same tags also feed link unfurls in Slack, Discord, WhatsApp, iMessage, and email clients, so one set of tags improves your appearance everywhere links travel.
Open Graph vs Twitter Cards vs Schema
These three often get confused. Open Graph controls social share previews and is the baseline every page should have.
Twitter Card tags refine how the card looks specifically on X; X falls back to OG if they're missing, but adding twitter:card gives you the large-image layout.
Schema.org structured data (JSON-LD) is different again - it powers Google rich results and AI citations, not social previews. You want all three, and they don't overlap: OG/Twitter for sharing, schema for search and AI.
Common Open Graph mistakes
- Relative image URLs.
og:imagemust be an absolute https URL or the image won't render. - Wrong dimensions. Off-ratio images get cropped awkwardly; stick to 1200x630.
- Expecting instant updates. Platforms cache aggressively - re-scrape with the debugger after changes.
- Missing og:title or og:description. The platform then invents its own, usually worse.
- Tags outside the <head>. OG tags placed in the body are ignored.
Related tools
Try these next
Browse all SEO tools- SERP Snippet PreviewSee your page in Google before you publish
- Meta Description GeneratorSEO titles & descriptions, sized right
- Meta Tag & Open Graph CheckerSee how your site appears in search and social
- Schema Markup GeneratorCreate valid JSON-LD structured data
- Structured Data CheckerValidate schema & rich results
- Headline AnalyzerScore your title for clicks & SEO
Guides on this topic
Your questions, answered
Have a question about your project? Ask us on a free call, and we'll give you a straight answer.
What are Open Graph tags?
What size should an og:image be?
Do I need both Open Graph and Twitter Card tags?
Why isn't my social preview updating?
Is this Open Graph generator free?
Is this generator free?
Tell us about your project
Tell us what you're building, when you need it, and what's in the way. A senior engineer will reply within one business day with honest next steps, even if that means we're not the right fit.
- Your project is led by a senior engineer, not a junior and not AI on its own
- AI speeds up the build. Every change is reviewed and tested before it ships
- Best for MVPs, SaaS products, automation, and fixing apps that keep breaking
