All tools

Open Graph preview

See how a link will look when shared, and check its tags.

About the Open Graph preview

When you share a link on Facebook, LinkedIn, X, Slack or Discord, the platform reads the page's Open Graph and Twitter Card meta tags to build the preview: the title, description and image. Missing or broken tags mean a plain, easy-to-ignore link.

This tool shows how a page will look in those previews, lists every meta tag it found, and points out what's missing or too long. Check a live URL, or paste the HTML of a page that isn't public yet.

How to use the Open Graph preview

  1. Choose Page URL and enter the address of the page, or choose Paste HTML and paste the page's <head>.
  2. Click Preview.
  3. Read the checks and fix anything marked Fix first, such as a missing og:image.
  4. Compare the preview cards, then publish your changes and check again.

Example

The minimum tags for a good link preview

Input

https://example.com/blog/launch

Output

<meta property="og:title" content="We launched v2" />
<meta property="og:description" content="What's new and how to upgrade." />
<meta property="og:image" content="https://example.com/og/launch.png" />
<meta property="og:url" content="https://example.com/blog/launch" />
<meta name="twitter:card" content="summary_large_image" />

Use a 1200 × 630 image with an absolute https URL.

Common errors and how to fix them

The old title or image still shows after I changed it

Facebook, LinkedIn and Slack cache previews. Re-scrape the URL in Facebook's Sharing Debugger or LinkedIn's Post Inspector, or add a query string like ?v=2 to the shared link.

No image appears in the preview

og:image must be an absolute URL that is publicly reachable over https, not a relative path like /og.png, and not blocked by robots.txt or a login.

The preview is empty for a single-page app

Crawlers don't run JavaScript, so tags added on the client are invisible to them. Render the meta tags on the server or at build time.

Good to know

  • The essential tags are og:title, og:description, og:image (an absolute https:// URL) and og:url, plus twitter:card set to summary_large_image for a large image on X.
  • A good og:image is 1200 × 630 pixels (about 1.91:1) and under 5 MB. Add og:image:alt to describe it.
  • In Page URL mode, our server fetches the page as WebDevUtilitiesPreview. Only public http(s) addresses on ports 80 and 443 are allowed; private and local network addresses are blocked.
  • Platforms cache previews. After changing your tags, use the platform's own debugger or re-share the link to refresh it.
  • The cards here are close approximations; each platform changes its layout from time to time.

Frequently asked questions

Why does my link show no image?

Usually og:image is missing, uses a relative URL, points to an image that needs a login, or the image is too small. Use an absolute https:// URL to a public image, ideally 1200 × 630 pixels.

What's the difference between Open Graph and Twitter Card tags?

Open Graph (og:) tags are read by Facebook, LinkedIn, Slack, Discord and most other platforms. X reads twitter: tags first and falls back to Open Graph, so you mainly need twitter:card alongside your og: tags.

Can I preview a page on localhost or a staging site?

Not with Page URL, because private addresses can't be fetched. Choose Paste HTML and paste the page's <head> instead.