Open Graph tag generator

Control how your page looks when it's shared on social media. Fill in the fields, then paste the code into the <head> of your page.

Your page details

Not sure what to enter? See the guide below.

Up to 60 characters, so it isn't cut off when shared.

Most pages use "website". Blog posts use "article".

Use the clean URL, without UTM parameters.

Recommended size: 1200 × 630 px.

Your Open Graph tags

The code updates as you type.

<meta property="og:title" content="Your page title" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://example.com/page" />
<meta property="og:image" content="https://example.com/image.jpg" />

Preview

Sharing a page on social media? You need Open Graph tags

Open Graph (OG) tags are <meta> tags in the HTML of a page. They control how your page appears when it's shared on social media, from the title and description to the preview image.

Without OG tags
A social media post without Open Graph tags: no image and no title
With OG tags
A social media post with Open Graph tags: image, title, and description

Without OG tags, the social platform decides how your post looks.

Every page you share should have the basic OG tags, because they:

  • Make people more likely to click and share your content.
  • Help social platforms understand your content and show it to the right people.
  • Show users what your content is about, so it gets more clicks.
  • Make your images relevant and correctly sized, which increases visibility.

OG tag generator guide

Title

The title of the page as you want it to appear on social media.

Type

The kind of content you're sharing, like an article, video, book, or company page. If you don't set a type, the default is usually "website". See the full list of types.

URL

The URL of the page that all shares will link to. Use the clean URL, without UTM parameters.

Image

The URL of the image shown as a preview when the page is shared.

Optional Open Graph tags

og:description

A one or two sentence description of your page.

og:site_name

The name of the larger website your page belongs to, like "IMDb".

og:locale

The language and region of the tags, in the format language_TERRITORY. Default is en_US.

og:locale:alternate

Other locales this page is available in.

og:audio

The URL of an audio file to go with your page.

og:video

The URL of a video file that complements your page.

og:determiner

The word that appears before the title in a sentence: a, an, the, "" (blank), or auto. Default is blank.

Get help with your website SEO

Find keywords, track your rankings, and fix SEO issues with Ubersuggest.

Try Ubersuggest for free