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 Open Graph Tag Generator

  1. Enter the values in the order shown in the input label or try the built-in sample.
  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.

Troubleshooting

Check the input format and compare your case with the built-in sample. Check image access and preview on the platforms where you share links.

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.

Frequently asked questions

How do I use the text I get back?

Copy the output into the document, list, or compatible tool where you need it.

How does the transformation work?

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

Can I try a sample first?

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

What should I check before using the result?

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.