Open Graph Generator
Generate Open Graph meta tags for a page.
- Runs locally in your browser
- No upload required
Try it
Supported formats
Privacy
Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.
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
- Collect the required properties and any supplied optional ones.
- Validate og:type against the documented set and the URL/image as absolute URLs.
- Emit one <meta property=...> line per property, escaping attribute values.
Usage
- Enter the page title and choose an og:type.
- Enter the absolute page URL and image URL.
- Optionally add a description, site name, locale and image alt text.
- 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
{
"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
{
"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
- The Open Graph protocol — Open Graph Protocol
- Google Search Central — Social sharing — Google Search Central
Send feedback
Tell us if this tool helped, report a problem, or suggest a tool. Only the message you type is sent — never the input you used in the tool.
Was this tool useful?
Prefer to write to us directly? See the contact page.