Open Graph Generator

Generate Open Graph meta tags for a page.

  • Runs locally in your browser
  • No upload required

Try it

Properties
og:title, og:type, og:url, og:image, og:description, og:site_name, og:locale
Meta tags
<meta property="og:title" content="How canonical URLs work" /> <meta property="og:type" content="article" /> <meta property="og:url" content="https://gampangin.example/articles/canonical-urls/" /> <meta property="og:image" content="https://gampangin.example/img/canonical-cover.png" /> <meta property="og:description" content="A practical guide to rel=canonical and duplicate URLs." /> <meta property="og:site_name" content="Gampangin" /> <meta property="og:locale" content="en_US" />
Findings
none
<meta property="og:title" content="How canonical URLs work" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://gampangin.example/articles/canonical-urls/" />
<meta property="og:image" content="https://gampangin.example/img/canonical-cover.png" />
<meta property="og:description" content="A practical guide to rel=canonical and duplicate URLs." />
<meta property="og:site_name" content="Gampangin" />
<meta property="og:locale" content="en_US" />

Supported formats

Input
text, url
Output
html

Privacy

Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.

Processing
In your browser
Privacy level
Browser only

Generated 8 Open Graph tag(s) with 0 finding(s).

How it works

  • Read the page identity fields.
  • Validated the type against the documented Open Graph types and the URL/image as absolute URLs.
  • Emitted the required and supplied optional tags with escaped attribute values.
  • og:title, og:type, og:url and og:image are required by the Open Graph protocol.

Methodology

  1. Collect the required properties and any supplied optional ones.
  2. Validate og:type against the documented set and the URL/image as absolute URLs.
  3. Emit one <meta property=...> line per property, escaping attribute values.

Usage

  1. Enter the page title and choose an og:type.
  2. Enter the absolute page URL and image URL.
  3. Optionally add a description, site name, locale and image alt text.
  4. Generate and copy the meta tags into the page head.

Examples

These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.

An article page

jsonSelect to copy
{
  "title": "How canonical URLs work",
  "type": "article",
  "url": "https://gampangin.example/articles/canonical-urls/",
  "image": "https://gampangin.example/img/canonical-cover.png",
  "description": "A practical guide to rel=canonical and duplicate URLs.",
  "siteName": "Gampangin",
  "locale": "en_US",
  "imageAlt": "A canonical URL diagram"
}

A website home page

jsonSelect to copy
{
  "title": "Gampangin developer tools",
  "type": "website",
  "url": "https://gampangin.example/",
  "image": "https://gampangin.example/img/og-home.png"
}

Limitations

Open Graph and social previews

Open Graph tags describe the page to social platforms, which choose a title, description and image for the shared link. Missing required properties makes the preview less predictable.

Use a representative og:image at roughly 1200x630 and an og:image:alt so the image is meaningful when it cannot be seen.

Frequently asked questions

Which Open Graph properties are required?
The protocol requires og:title, og:type, og:url and og:image; include at least these.
Does Open Graph affect Google ranking?
No. Open Graph affects how a link renders when shared; it is not a ranking factor.

Sources

  1. The Open Graph protocol — Open Graph Protocol
  2. Google Search Central — Social sharing — Google Search Central