OGCard

Open Graph tags and image size: a practical checklist

When someone pastes your link into Slack, X, LinkedIn or Facebook, the preview card comes from a handful of meta tags in your page's <head>. Here is the short list that matters, and what to check when the card looks wrong.

The tags you need

<meta property="og:title" content="Page title">
<meta property="og:description" content="One or two sentences">
<meta property="og:image" content="https://example.com/card.png">
<meta property="og:url" content="https://example.com/page">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">

Image size

Five reasons a preview breaks

  1. Relative image URL. /img/card.png often fails. Use an absolute https:// URL.
  2. Tags injected by JavaScript. Most crawlers do not run your scripts. Tags must be in the HTML the server returns, which matters for single-page apps.
  3. The image is blocked. A login wall, a firewall rule, a bot challenge or a robots.txt rule on the image path stops the crawler from fetching it.
  4. Old cache. Platforms cache a card after the first share. Changing the image URL (for example adding ?v=2) or using the platform's own debugger forces a refresh.
  5. Wrong attribute. Open Graph uses property="og:…"; Twitter tags use name="twitter:…". Mixing them up is common.

Check a page now. The free Open Graph checker shows how your link looks on Facebook, X, LinkedIn and Slack and lists missing tags.

Need an image for every page without designing each one? OGCard turns a URL like …/og?title=My%20post into a 1200×630 PNG. Free with a small mark; Pro removes it.

Open the checker