How to Generate Open Graph Meta Tags

Open Graph meta tags control how your page looks when shared on social media. Without them, platforms guess what to show — often pulling the wrong image, a truncated title, or no description at all. Adding OG tags ensures your content appears the way you intend every time it's shared.

Why Open Graph tags matter

When someone shares your page on Facebook, LinkedIn, or Twitter, the platform reads your OG tags to build the preview card. Set them properly and you control the title, description, and thumbnail image. Leave them out and the platform makes its best guess — which is often wrong. Good OG tags increase click-through rates because the preview looks polished and relevant.

How to generate OG tags with this tool

  1. Open the Open Graph Generator tool.
  2. Fill in your page details: website name, page title, description, image URL, and page URL.
  3. Choose the content type that best matches your page.
  4. Preview the social card in real-time to see exactly how it will appear.
  5. Copy the generated meta tags or download them as a text file.
  6. Paste the tags into the `<head>` section of your HTML.

Everything runs in your browser — no data is sent anywhere.

What each field does

Making a preview image that works

The preview image is the most visible part of your social card. A bad image kills engagement. What works:

Where to put the tags

The generated meta tags go inside the `<head>` section of your HTML, between the `<head>` and `</head>` tags. They do not affect how your page looks — they only tell social platforms what to display.

```html

<head> <title>Your Page Title</title> <!-- Open Graph Meta Tags --> <meta property="og:title" content="Your Page Title" /> <meta property="og:description" content="A brief description of your content" /> <meta property="og:image" content="https://example.com/image.jpg" /> <meta property="og:url" content="https://example.com/page" /> <meta property="og:type" content="website" /> <meta property="og:site_name" content="My Website" /> <!-- End Open Graph Meta Tags --> </head>

```

Related tools

For image-based social previews, Add Text to Image lets you create custom thumbnail images directly. Need to crop or resize the thumbnail image first? Crop Image and Resize Image handle that before you generate the OG tags.

Common uses

Privacy and limits

Generating OG tags is fully local — no data is sent to any server, nothing is stored, offline once loaded. Open the Open Graph Generator tool to create your tags.