What Is Open Graph? Make Your Links Look Great

Share a link on WhatsApp, Facebook, LinkedIn or X and one of two things happens: a rich card appears with an image, title and description, or a bare URL sits there looking forgettable. The difference is a handful of hidden tags in the page's code. So what is Open Graph, and how do you make every link to your site look professional when people share it?

Screenshot of the Open Graph Generator on Assen Tools
The Open Graph Generator in use. Open the Open Graph Generator – free, no sign-up.

The short answer

Open Graph is a set of meta tags, introduced by Facebook in 2010, that tells social platforms how to display a page when it is shared. Most major platforms and messaging apps now read them, including Facebook, WhatsApp, LinkedIn, Telegram, Slack and Discord. X (Twitter) uses its own similar "Twitter Card" tags but falls back to Open Graph.

The essential tags

Placed in the <head> of a page, the core tags look like this:

<meta property="og:title" content="How to Compress a PDF Without Losing Quality">
<meta property="og:description" content="Shrink PDFs for email and uploads in seconds.">
<meta property="og:image" content="https://example.com/images/compress-pdf.jpg">
<meta property="og:url" content="https://example.com/blog/how-to-compress-a-pdf">
<meta property="og:type" content="article">

And for X:

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

The ideal og:image

The image matters most – it is what makes people stop scrolling.

  • Size: 1200 × 630 pixels (a 1.91:1 ratio) works across almost all platforms.
  • File size: keep it under about 1 MB; under 300 KB loads faster in chat apps. Use the Image Compressor.
  • Format: JPG or PNG are the safest choices.
  • Text: keep any text large and central, because some apps crop the edges.
  • Absolute URL: the image address must start with https://.

Create the right dimensions with the Image Resizer or Crop Image, and add a headline with Add Text to Image.

Why it matters

A good social media preview:

  • Gets noticeably more clicks than a plain link
  • Makes your brand look established and trustworthy
  • Controls exactly which title and image appear, instead of letting the platform guess

Open Graph does not directly affect Google rankings, but more shares and clicks bring more visitors and, often, more links.

Fixing a link preview that will not update

Platforms cache previews. If you changed your image or title but the old version still appears:

  • Use Facebook's Sharing Debugger and click "Scrape again".
  • Use LinkedIn's Post Inspector.
  • For WhatsApp, the cache clears over time; adding a harmless query string such as ?v=2 to the URL forces a fresh preview.

Generate your tags

The free Open Graph Generator creates the full set of Open Graph and Twitter Card tags and shows a preview of how your link will look. Combine it with the Meta Tag Generator for your SEO title and description – see how to write a meta description.

WordPress users can set these through an SEO plugin such as Yoast or Rank Math without editing code.

Frequently asked questions

Do I need different tags for every page? Ideally yes – each page should have its own title, description and image so shares are relevant.

What happens without Open Graph tags? Platforms guess, often picking a random image or none at all.

Is og:image the same as the favicon? No. The favicon is the tiny tab icon; og:image is the large preview picture. See how to create a favicon.

Does WhatsApp support Open Graph? Yes. WhatsApp reads og:title, og:description and og:image to build its previews.

Summary

So, what is Open Graph? A small set of meta tags that controls how your links look when shared on social media and messaging apps. Add a clear title, a short description and a 1200 × 630 image to every important page. Generate and preview your tags with the free Open Graph Generator.

Jonathan Nwachukwu, founder of Assen Tools

Written by

Jonathan Nwachukwu · Founder & developer

Jonathan is a freelance web developer and web development teacher who builds Laravel, WordPress and WooCommerce sites for clients. He built AssenTools to put the everyday file, photo and calculation jobs he kept doing for clients and students into one free, private toolbox, and he maintains every tool and guide on the site.