Skip to content
🔗

Open Graph Generator

Generate Open Graph meta tags for better social sharing on Facebook, LinkedIn, and more.

Runs in your browser

Updated

Starting values

Six fields drive the page. Page Title opens as My Awesome Page, Description as A great description for social sharing., Image URL as https://example.com/image.jpg, Page URL as https://example.com/page, Site Name as My Website, and the Type dropdown as website, with article, product and video as the other choices. Every keystroke in any box and every change of the dropdown re-runs the generator, so the snippet below always matches the inputs, and the box is already full when the page loads.

The tags it writes

The output is one HTML comment line followed by six meta tags in a fixed order: og:title, og:description, og:image, og:url, og:type and og:site_name. Each is emitted as a property and content pair ending in a self-closing slash, and a line appears even when its field is empty. The text lands in a read-only box, and the Copy Tags button sends it to the clipboard while its label reads Copied! for one and a half seconds.

A worked example

Open the page and touch nothing: the box already holds the comment plus og:title with content My Awesome Page, og:description carrying A great description for social sharing., the two example.com URLs, og:type website and og:site_name My Website, seven lines in all. Now replace the title with a phrase wrapped in double quotes; the quotes turn into quoted-text entities inside the content attribute, and everything else is copied across exactly as typed.

What the escaper does and misses

Before insertion each value passes through one replace step that only swaps double quotes for their entity. That is enough to keep an attribute from breaking when you type quotes, but less-than signs and ampersands are never encoded, so they stay raw in the generated markup.

Where it stops

  • Only double quotes are escaped, so an unescaped ampersand or angle bracket inside a value produces invalid markup.
  • Choosing article or video changes nothing beyond the og:type value; no publish dates, no video dimensions, no extra properties appear.
  • The two URL boxes are never validated, and nothing checks that the image is reachable or a share-friendly size like 1200 by 630.
  • No twitter card tags are emitted, so posts on X rely on those properties being generated elsewhere.

Questions people ask

Do I still need a plain meta description?

Yes. This page writes only og: properties; the classic description tag is a separate line that search engines read on their own.

Where do the tags go?

Paste the whole block into the head section of your document, before the closing head tag, and Facebook, LinkedIn and similar scrapers pick it up on the next crawl.

Open Graph Checker reads these tags back from a live URL, and OG Preview shows how the same values render inside a social post.