Developer tools
Open Graph meta tag generator
Generate Open Graph meta tags with escaped title, description, canonical URL and an optional image URL, ready to paste into your page head.
The example values can be changed. Press Calculate to update the result; you can download it as TXT or CSV and collect scenarios in this tab. Nothing is saved or sent automatically.
Result
Method:
Title, description and URLs are escaped, so quotes and < > cannot break your HTML. Without an image URL the og:image tag is left out; most networks then show a link without a picture. Twitter/X specific tags are not generated, and the tags do not influence search rankings. The preview depends on your browser, so check the result on your own page. Copy the code or download it as TXT or CSV; JSON and printable HTML files also keep your inputs. Nothing is saved or sent automatically and entered addresses are never opened.
Decimal results are approximate. Inputs stay in this browser tab.
How it works
Title, description and URLs are checked and written as meta tags, with special characters escaped. Title, description and URLs are escaped, so quotes and < > cannot break your HTML. Without an image URL the og:image tag is left out; most networks then show a link without a picture. Twitter/X specific tags are not generated, and the tags do not influence search rankings. The preview depends on your browser, so check the result on your own page. Copy the code or download it as TXT or CSV; JSON and printable HTML files also keep your inputs. Nothing is saved or sent automatically and entered addresses are never opened.
Worked example
Editable example: title=Own page title, description=Own description for a website page., url=https://example.test/page, image=
Frequently asked questions
How do I generate Open Graph meta tags for a web page?
Enter the page title, a description, the page URL and optionally an image URL. The Open Graph meta tag generator returns a title tag, a meta description, a canonical link and the og:title, og:type, og:url and og:description tags as escaped code.
Which og:type does the Open Graph generator use?
The generator produces selected Open Graph tags for a website, so og:type is set to website.
What happens if I leave the image URL empty?
An empty image field omits the og:image tag. The output is then not a complete Open Graph set, so add an image URL if you need one.
Does the generator create Twitter or X card tags?
No. Only the static title, description and canonical tags plus selected Open Graph website tags are generated. Twitter or X cards are not included.
Does the Open Graph generator check my URL or image?
No. Entered URLs, including the image URL, are never fetched, and the tool gives no guarantee about ranking, display, image rights or site security.
Are special characters in the title escaped?
Yes. Title, description and attribute values are escaped as HTML text and quoted attributes. Each output row is limited to 500 characters, and control characters or unpaired surrogates are refused.
How can I save the generated meta tags?
You can download the result as JSON, as printable HTML or as a code file, and export the current result as TXT or CSV. Nothing is saved or sent automatically.