Open Graph Generator

Create Open Graph and Twitter Card tags with a live preview

Write the meta tags that control how your page looks when shared on Facebook, LinkedIn, WhatsApp, Slack, Discord and X: title, description, image, type and more - with checks, article and product extras, and a preview of the shared card.
Try an example:

Output will appear here...

About Open Graph Generator

How it works

  1. Open Graph is a set of <meta property="og:..."> tags, created by Facebook, that nearly every app now reads when someone shares a link.
  2. Fill in the fields and the tags are written for you, with special characters escaped so the HTML stays valid.
  3. Each important tag is checked (length, absolute https image URL, recommended 1200 × 630 size), and a preview shows roughly how the link card will look on Facebook, LinkedIn and X.
  4. Copy the tags into the <head> of your page - or into your CMS's "social" or "custom head" settings.

What you need

  • The page title and URL, ideally a share image hosted online (an absolute https:// address).

Tips

  • Make the image 1200 × 630 px and keep important text in the centre - some apps crop the edges or show it square.
  • Write the title for people in a feed: it can be catchier than your SEO title.
  • After publishing, check the real result with our Open Graph Checker, or Facebook's Sharing Debugger (which also refreshes Facebook's cache).

Limitations

  • The preview is an approximation - each app draws cards slightly differently and may change its design.
  • Apps cache link previews; changes can take a while to show for links already shared.

Runs in your browser. The tags are generated in your browser. The preview loads your image from its own address.

Frequently asked questions

What are Open Graph tags?+

Meta tags in a page's HTML that tell Facebook, LinkedIn, WhatsApp, Slack and others which title, description and image to show when the page is shared.

What size should an Open Graph image be?+

1200 × 630 pixels (a 1.91:1 ratio), under 5 MB, as JPG or PNG. Use at least 600 × 315 or apps may show a small thumbnail instead.

Do I need separate Twitter tags?+

Only twitter:card. X reads og:title, og:description and og:image when its own tags are missing - this generator adds just the card type and, optionally, your handle.

Why does Facebook still show my old image?+

Facebook caches previews. Paste your URL into Facebook's Sharing Debugger and click "Scrape again".