Open Graph Tag Generator

Build Open Graph and Twitter Card tags, preview the title and thumbnail, and compare the generated markup in Three.js.

  • Communication
  • Runs in your browser
  • Free, no signup

How to use

How to Use Open Graph Tag Generator

  1. 1

    Enter page details

    Fill in the title, description, image URL, and page URL.

  2. 2

    Choose OG type

    Select website, article, product, or another Open Graph type.

  3. 3

    Preview the card

    See how your link will appear when shared on social media.

  4. 4

    Copy the meta tags

    Click copy to grab the Open Graph meta tag HTML code.

The guide

Tested tool guide Tested browser tools Checked November 30, 2026

What Open Graph Tag Generator does, with a checked example

Enter the title, object type, canonical page URL and image URL used for a shared link. Add optional site, description, locale and image description fields. Compare the preview text and generated markup in Three.js, then copy or download the HTML tags.

Worked example

A concrete input and expected output from the current implementation.

Input

Use Garden & Herbs as the page title, type Website, and use complete HTTPS URLs for the canonical page and image.

Expected output

The tags include og:title with Garden & Herbs and the og:type, og:url and og:image fields.

HTML escaping keeps the ampersand part of the title when a browser reads the content attribute.

How the result is produced

1

Enter the page and image

Supply the page’s permanent address and an image address that sharing services can fetch. Set the object type and write a short title. Partial markup appears while you fill in these fields.

2

Review optional details

Use a short description and meaningful image description. Add optional Twitter Card fields if your sharing workflow uses them.

3

Copy the tags

The generated metadata stays in the preview text box until copied or saved. Place the tags in the page head and check the result with the intended service.

Good uses

  • Write metadata for an article or event page.
  • Compare alternative link titles and descriptions.
  • Prepare the Open Graph and card tags together.

Limits and checks

  • Use absolute, accessible image and page addresses.
  • The preview can load an HTTPS thumbnail. Sharing services control the layout, thumbnail and caching.
  • Update existing keys in the page head to avoid duplicate values.

Common questions

Where do the generated tags go?

Put them inside the HTML head of the page people will share.

Can I preview an image?

An HTTPS image can load in your browser as a thumbnail. The generated tags always use the image address you entered.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.