About the Open Graph Generator tool
Open Graph tags control how your pages appear when shared on social networks and messaging apps. Beyond the basic title, description and image, the protocol supports image dimensions and alt text, locales, content types and article details such as publish time, author and tags. Supplying the image width and height, for example, lets Facebook render the preview on the very first share instead of waiting to fetch the image.
This Open Graph generator gives you a single form for the full set. Choose an og:type such as website, article, product or profile; enter the title, description, canonical URL, site name, locale and alternate locales; then describe the image with its URL, width, height, MIME type and alt text. When the type is article, extra fields appear for published and modified times, author, section and tags, with times converted to ISO 8601 UTC. A switch adds matching Twitter card tags, and there is an optional fb:app_id field.
Checks flag missing titles and images, relative URLs, small images below 600 × 315, aspect ratios far from 1.91:1 and badly formatted locales. A Facebook-style preview updates as you type, and the code can be copied or downloaded. Everything is generated in your browser.
How to use Open Graph Generator
- Pick an og:type and enter og:site_name, og:title, og:description and og:url.
- Set og:locale and any alternate locales, separated by commas.
- In the “Image” section enter the og:image URL, width, height, MIME type and alt text.
- For articles, fill in published and modified times, author, section and tags.
- Leave “Include Twitter tags” on if you want twitter: tags too, then copy or download the code.
Features
Full Open Graph coverage
Type, title, description, URL, site name, locale, alternates, image details and fb:app_id.
Article properties
Published and modified times, author, section and multiple tags for article pages.
Twitter tags included
One switch adds twitter:card, site, creator, title, description, image and alt.
Image checks
Warns about small images and aspect ratios that will be cropped.
Live Facebook preview
See the card update as you edit, then copy or download the tags.
When to use it
- Create complete share tags for a hand-coded landing page.
- Add article publish times and tags to a blog template.
- Set up language alternates for a site available in English and French.
- Give a developer an exact set of tags to add to a CMS theme.
Frequently asked questions
Which Open Graph tags are required?
The protocol lists og:title, og:type, og:image and og:url as the basic required tags. og:description and og:site_name are strongly recommended.
Why add image width and height?
Without them, some platforms must download the image before they can show a preview, so the first share may appear without one. Declaring the size avoids that.
What does og:locale do?
It states the language and region of the content in language_TERRITORY form, such as en_US or fr_FR. og:locale:alternate lists other languages the page is available in.
Should og:url match my canonical URL?
Yes. Using the canonical URL helps platforms combine likes and shares for the same page.
Where do I put the generated tags?
Inside the <head> of the page. In a CMS, use its SEO or custom head code settings; avoid adding duplicates if a plugin already outputs Open Graph tags.