Skip to main content
Free Tools

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 requiredRuns in your browserGenerates 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 engineer

Quick 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

TagPurposeRequired?
og:titleHeadline of the share cardYes
og:imagePreview image (1200x630px)Yes
og:descriptionSummary under the titleRecommended
og:urlCanonical URL of the pageRecommended
og:typewebsite, article, productOptional
twitter:cardsummary_large_image for big previews on XRecommended

Recommended image sizes by platform

PlatformIdeal dimensionsRatio
Facebook / LinkedIn1200x630px1.91:1
X (large image card)1200x628px1.91:1
X (summary card)144x144px+1:1

How to add Open Graph tags (step by step)

  1. Fill in your details above: title, description, canonical URL, and a 1200x630 image URL.
  2. Copy the generated tags - both Open Graph and Twitter Card.
  3. Paste them into the <head> of the page, using an absolute https:// URL for og:image.
  4. Validate with Facebook's Sharing Debugger or LinkedIn's Post Inspector.
  5. 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:image must 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.

Frequently asked questions

What are Open Graph tags?
Meta tags in your page's head that control how a link appears when shared - title, description, and preview image. Used by Facebook, LinkedIn, Slack, Discord, WhatsApp, and more.
What size should an og:image be?
1200x630px (1.91:1), referenced with an absolute URL. Keep it under ~5MB; JPG or PNG work best.
Do I need both OG and Twitter Card tags?
X falls back to OG tags, but adding Twitter Card tags gives precise control over the X preview. This generator outputs both.
Why isn't my preview updating?
Platforms cache OG data. Use the platform's debugger (e.g. Facebook Sharing Debugger, LinkedIn Post Inspector) to force a re-scrape.
Is this generator free?
Yes - free, no signup, fully client-side. Nothing is sent to a server.

Related tools

Launch Faster

Ready to ship your next product?

Tell us what you're building. Senior engineers will scope, plan, and start delivering your product with production-ready architecture - fast.

Talk to real engineers
Clear scope in one call
No obligation