Skip to main content

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
Free SEO toolHow it works

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.

Related tools

FAQ

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?
Open Graph (OG) tags are <meta> tags in a page's <head> that control how the page appears when shared on social platforms - the title, description, and preview image. They were introduced by Facebook and are now used by LinkedIn, Slack, Discord, WhatsApp, and more.
What size should an og:image be?
The recommended og:image size is 1200x630 pixels, a 1.91:1 ratio. It must be referenced with an absolute URL (https://...), not a relative path. Keep the file under ~5MB and use JPG or PNG for the widest compatibility.
Do I need both Open Graph and Twitter Card tags?
Twitter/X will fall back to Open Graph tags if Twitter Card tags are missing, so OG tags alone often work. But adding twitter:card (summary_large_image) and twitter:title/description/image gives you precise control over the X preview. This generator outputs both.
Why isn't my social preview updating?
Social platforms cache OG data aggressively. After updating your tags, use the platform's debugger or sharing-inspector to force a re-scrape (for example, Facebook's Sharing Debugger or LinkedIn's Post Inspector). The new preview can take minutes to hours to refresh otherwise.
Is this Open Graph generator free?
Yes - completely free, no signup, and it runs entirely in your browser. Nothing you enter is sent to a server.
Is this generator free?
Yes - free, no signup, fully client-side. Nothing is sent to a server.

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
Browse all SEO tools