Social sharing

Open Graph tags: control how your links look when shared

When someone shares your page, the preview card's title, description and image come from Open Graph tags. Without them, platforms guess, often badly. Here's how to set them up properly.

Open Graph is a set of meta tags, created by Facebook and now used by almost every platform, that tell social networks and messaging apps how to display a link. LinkedIn, X, Slack, WhatsApp, iMessage, Discord and Pinterest all read them.

The essential Open Graph tags

<meta property="og:title" content="Waterproof Trail Running Shoes">
<meta property="og:description" content="Grippy, waterproof and light. Free returns for 60 days.">
<meta property="og:image" content="https://example.com/img/og-trail-shoes.jpg">
<meta property="og:url" content="https://example.com/trail-shoes/">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Example Co">
TagWhat it sets
og:titleThe headline of the preview card
og:descriptionOne or two lines under the title
og:imageThe preview image
og:urlThe canonical address of the page
og:typewebsite for most pages, article for posts
og:site_nameYour brand name

Image size and format

  • 1200 × 630 pixels (a 1.91:1 ratio) works well across platforms.
  • Keep important text and logos in the centre; some platforms crop to a square.
  • Use JPG or PNG under about 5 MB (smaller is faster).
  • Use a full absolute URL with https://.
  • Add og:image:width, og:image:height and og:image:alt so platforms can lay out the card before downloading the image and describe it to screen readers.

Free tool

Open Graph Checker

Paste a page address. See the share preview on Facebook, X, LinkedIn and Slack, and what to fix in its Open Graph tags.

Free, no sign-up. Clarnic reads the page the way a search engine does.

Open the full Open Graph Checker page →

Twitter / X cards

X reads Open Graph tags, but it also has its own card tags. The one you need is:

<meta name="twitter:card" content="summary_large_image">

This makes X show a large image instead of a small thumbnail. If twitter:title, twitter:description and twitter:image are missing, X falls back to the Open Graph values.

Do Open Graph tags help SEO?

Not directly. Google doesn't use them as a ranking signal. But they make shared links far more clickable, which brings visitors, and more people seeing and sharing your content can lead to links and mentions over time.

Common problems

  1. No og:image, so platforms pick a random image from the page, or none.
  2. Relative image URLs like /img/share.jpg instead of the full address.
  3. Image too small, which shows as a tiny thumbnail.
  4. Old preview still showing after you changed the tags. Platforms cache previews; use Facebook's Sharing Debugger or LinkedIn's Post Inspector to refresh them.
  5. The same image and title on every page, usually from a theme default.
  6. Image blocked by robots.txt or hotlink protection.

Enter a page in the checker on this page to see how it will look when shared on Facebook, LinkedIn, X and messaging apps, which tags are missing, and whether the image loads at a good size. To write all the tags at once, use the meta tag generator.

Questions

What are Open Graph tags?

Meta tags in a page's head that tell social networks and messaging apps what title, description and image to show when the page is shared.

What size should an Open Graph image be?

1200 × 630 pixels is the standard choice. Keep important content centred, since some platforms crop to a square.

Do Open Graph tags affect SEO?

Not directly. They make shared links look better and attract more clicks, which can lead to more traffic and links.

Why is my old link preview still showing?

Platforms cache previews. Use Facebook's Sharing Debugger or LinkedIn's Post Inspector to fetch the page again.

See what to fix on your website today.

Free plan, no credit card. Your first fixes in about a minute.