SEOLyzerPro

100% Free forever - No account required

Use 47 free online tools: meta tag and robots.txt generators, image and text tools, JSON converters, calculators and unit converters. No signup needed

Open Graph Generator

Create Open Graph tags for better link previews

Open Graph Generator

What this tool does

The Open Graph Generator creates the meta tags that control how a page looks when someone shares it on Facebook, LinkedIn, WhatsApp, Telegram, Slack and many other platforms. You fill in a title, description, image address and page type, and the tool gives you the code to paste into your page’s head section. With these tags in place, a shared link appears as a neat preview card instead of a bare address or a randomly chosen image.

How to use it

  1. Enter the page title.
  2. Write a short description.
  3. Add the full address of your preview image.
  4. Enter the page address (URL) and choose the content type, such as website or article.
  5. Add the site name and locale if your tool offers them.
  6. Generate and copy the code, then paste it inside the head section of your page.

What the code looks like

 
html
<meta property="og:title" content="Free Word Counter">
<meta property="og:description" content="Count words, characters and sentences as you type.">
<meta property="og:image" content="https://www.example.com/images/word-counter.jpg">
<meta property="og:url" content="https://www.example.com/word-counter">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Example Site">

[Replace this with a sample from your own tool.]

The main Open Graph properties

  • og:title is the headline of the preview. Keep it clear and short enough to display fully.
  • og:description is the supporting line. A sentence or two is enough.
  • og:image is the picture shown in the card, and is the most important element for attracting attention.
  • og:url is the canonical address of the page, so likes and shares are counted together.
  • og:type describes the content. Use “website” for general pages, “article” for blog posts and news items, and other types such as “product” or “video” where relevant.
  • og:site_name is the name of your website, shown above or below the title on some platforms.
  • og:locale gives the language and region, for example en_US.

Choosing the image

Use an image of about 1200 × 630 pixels, which has the common 1.91:1 ratio for large link previews. Facebook recommends at least 600 × 315, and the image should be well under about 8 MB, with a smaller file size loading faster. Use JPG or PNG, since other formats are not reliably supported everywhere. Keep important content in the centre, because some platforms crop the edges, and avoid tiny text that is unreadable on a phone. Use the full web address of the image, starting with https://.

Why Open Graph matters

A good preview makes a shared link look professional and gives people a reason to click. It does not directly raise search rankings, but it can increase clicks and shares, which brings more visitors. Platforms that do not support Open Graph in full may still use some tags, so adding them is a low-effort way to improve how your pages appear everywhere links are posted.

Best practices

  • Give every important page its own title, description and image where possible.
  • Keep titles roughly under 60 characters and descriptions under about 150 so they are less likely to be shortened.
  • Make sure the image is publicly accessible. An image behind a login or blocked by robots.txt will not show.
  • Match the og:url to the canonical address of the page.
  • Do not mislead. The preview should describe what the page truly contains.
  • Use text and design on the image that stay legible when the card is small.

Testing and refreshing

After adding the tags, test the page with the sharing debugger of the platform you care about, such as the Facebook Sharing Debugger, and look at the preview. Platforms keep a cached copy of each link, so after you change a tag or an image, you may need to ask the debugger to fetch the page again before the new version appears. This is why an old image sometimes keeps showing after an update.

Common problems

  • No image appears. The address may be wrong, not public, or the file may be too small or too large.
  • Old title or image shows. The platform is using its cache. Refresh it through the debugger.
  • Wrong page type. Use website or article, whichever matches the content.
  • Duplicate tags. A theme and a plugin may both add Open Graph tags. Keep only one source.
  • Relative image paths. Use the full address starting with https://.

Where to put the code

The tags must be in the head section of the page. In WordPress and other systems, an SEO plugin or theme setting can add them. If you paste code manually, avoid placing duplicate tags from another plugin on the same page.

Limits of this tool

The generator creates tags but does not host your image, publish the code, or check how each platform will display the card. Different platforms show previews in slightly different ways, so always test.

Frequently asked questions

Is Open Graph the same as Twitter Cards?
They are separate sets of tags, although X can fall back to Open Graph tags if Twitter Card tags are missing. For the best control, add both.

Does it help SEO?
Not directly, but better previews can bring more clicks and shares.

What is the best image size?
About 1200 × 630 pixels is a safe choice.

Do I need it on every page?
It is best on pages people are likely to share, and useful on all important pages.

Related tools

Twitter Card Generator, Meta Tag Generator, Meta Tags Analyzer, Image Converter, Image Resizer and Robots.txt Generator.