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
- Enter the title of your page in the "og:title" field.
- Select the appropriate content format from the "og:type" dropdown menu, such as "website".
- Write a concise, engaging summary for the "og:description" field.
- Provide the absolute URL of the page in "og:url" and the absolute URL of your preview image in "og:image".
- Fill in the optional fields like "og:site_name", "og:locale", and "og:image:alt" to enrich your social card.
- 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.
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
<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">