Open Graph Tag Generator

Generate Open Graph tags for sharing a web page.

Text inputPreview and copyRuns in your browser

Enter your text

Result

How to use

  1. Enter the title, description, page URL, and image URL on four separate lines in that order.
  2. Select Run tool to generate the output.
  3. Review the output before copying it.

How it works

Generate Open Graph tags for sharing a web page. Escape text and use full HTTP or HTTPS URLs for the page and image.

Formula or processing rules

Escape text and use full HTTP or HTTPS URLs for the page and image.

Worked example

Four input lines give the title, description, page URL, and image URL. The output includes an og:image tag for the supplied JPG.

Worked example
MeasureValue
Title, description, page URL, and image URL on separate linesPDF tools Work with PDFs. https://example.com/pdf/ https://example.com/pdf.jpg
Result<meta property="og:title" content="PDF tools"> <meta property="og:description" content="Work with PDFs."> <meta property="og:type" content="website"> <meta property="og:url" content="https://example.com/pdf/"> <meta property="og:image" content="https://example.com/pdf.jpg">

Before using the result

Use a share image that is relevant to the page and reachable publicly. Verify the published head includes one consistent set of Open Graph values.

Pros and cons

Pros

Generate Open Graph tags for sharing a web page. The sample provides an immediate check of the expected output.

Cons

Check image access and preview on the platforms where you share links.

Limitations and troubleshooting

Use a full image URL and verify that the image can be opened without a login.

Common issue and what to check

If the old image still appears, compare the live tags and test the image URL directly. The sharing platform may cache an earlier preview.

Create companion social card metadata

Frequently asked questions

Why might a sharing app show an old image?

Sharing applications can cache previews. Check the current page head and confirm that the new image URL is publicly accessible.

What rule does the Open Graph Tag Generator apply?

Escape text and use full HTTP or HTTPS URLs for the page and image.

What should I see in the Open Graph Tag Generator example?

Yes. Select Try a sample to load the worked example and see the expected result.

What should I verify after using Open Graph Tag Generator?

Check image access and preview on the platforms where you share links.

Is my input stored by the tool?

The transformation is computed in the open page. The tool does not save the submitted text.