Open Graph Generator

Decide what people see when your link is shared. Add a title, description and image, then copy the Open Graph tags.

Open Graph Generator

SEO Tools

Runs locally in your browser.

About the Open Graph Generator

When you share a webpage link on social media platforms like Facebook or LinkedIn, these platforms pull a title, description, and image to create a "link preview" card. If your page lacks the correct Open Graph (og) tags, platforms will guess which content to display, often resulting in cropped images, missing titles, or irrelevant descriptions that hurt your click-through rate. This tool generates accurate, error-free Open Graph HTML code, giving you full control over exactly how your content appears when shared across social networks.

Key Features of Open Graph Generator

  • Main tags coveredCreates og:title, og:type, og:description, og:url and og:image.
  • Image alt textA separate og:image:alt field describes the picture for screen reader users.
  • Localization OptionsDefine your site name and specific locale (e.g., en_US) to target the right audience.
  • In your browserThe processing runs on your device and the data is not sent to a server.
  • One-Click CopyInstantly generate the HTML snippet and copy it to your clipboard with a single click.

How to Use Open Graph Generator

  1. Enter the title of your page in the "og:title" field.
  2. Select the appropriate content format from the "og:type" dropdown menu, such as "website".
  3. Write a concise, engaging summary for the "og:description" field.
  4. Provide the absolute URL of the page in "og:url" and the absolute URL of your preview image in "og:image".
  5. Fill in the optional fields like "og:site_name", "og:locale", and "og:image:alt" to enrich your social card.
  6. Click the "Generate" button, then click "Copy" to grab the HTML code for your webpage.

Open Graph Generator Examples

Tags for sharing a recipe page. Use full https:// addresses for the page and the image.

Input
og:title: Homemade Bread Recipe
og:description: Four ingredients, step by step.
og:url: https://example.com/bread
og:image: https://example.com/bread.jpg
Result
<meta property="og:title" content="Homemade Bread Recipe">
<meta property="og:type" content="website">
<meta property="og:description" content="Four ingredients, step by step.">
<meta property="og:url" content="https://example.com/bread">
<meta property="og:image" content="https://example.com/bread.jpg">
<meta property="og:locale" content="en_US">

Open Graph Generator — Frequently Asked Questions

What is the Open Graph protocol?
Open Graph is a protocol originally created by Facebook that standardizes how web pages are represented as rich objects on social graphs, allowing you to control the title, image, and description of shared links.
Where should I place the generated Open Graph tags?
The generated HTML code must be pasted directly inside the <head> section of your webpage's source code.
Do these tags work on X (formerly Twitter)?
X primarily uses its own Twitter Cards meta tags. However, if Twitter Cards are missing, X's crawler will fall back on Open Graph tags to generate a link preview.
Why is my image not showing up in the link preview?
Use an absolute URL (starting with http or https) in og:image, make sure crawlers can open the file, and follow the platform's recommended size, usually 1200x630 pixels.