# Open Graph Preview

> Paste the HTML of a page to see how its link looks on six apps side by side, with every og: and twitter: tag listed and checked.

- Page: https://codethatmoves.com/tools/marketing/open-graph-preview/
- Site: Code That Moves
- Category: Marketing tools
- Free, runs in the browser, nothing is uploaded
- Last checked: 2026-11-03

## What it does

- Previews for Facebook, LinkedIn, X, Slack, Discord and WhatsApp at the same time
- Lists every og:, twitter:, article: and description tag found in the page, with HTML entities such as &#8217; and &ndash; decoded as the apps show them
- Checks the four required Open Graph properties, relative and http image URLs, duplicates, a missing twitter:card, site name and image alt text
- Uses og:description before the meta description, as Facebook, LinkedIn and Slack do
- Judges the image against the Facebook, LinkedIn and X size rules from og:image:width and og:image:height, or after loading it on request
- Test a local image before you upload it, to see how it crops on each app and whether it fits the 5 MB (X, LinkedIn) and 8 MB (Facebook) file limits
- A bookmarklet copies the head of any open tab, so you can skip Ctrl+U
- Works on pages that are not live yet, behind a login or on localhost, because you paste the HTML

## How to use it

1. Open the page in your browser, press Ctrl+U (Cmd+Option+U on a Mac) to see the source, copy it and paste it here. The head alone is enough. Or drag the bookmarklet to your bookmarks bar once and click it on the page.
2. Read the checks and fix anything marked in red, then look at the six previews.
3. Press Load image to fetch the share image and check its size, or test a local file before you publish it.

## What it checks and why

When a link is shared, the app reads a few meta tags from the page head and builds a card: title, description, image and site name. Those tags come from the Open Graph protocol, which Facebook created and most apps now read, plus X's own twitter: tags. If a tag is missing or wrong, the card falls back to whatever the app can find, which is often a bare link or the wrong picture.

Most preview tools fetch the page from a server. This one reads the HTML you paste, so it works on drafts, staging sites, localhost and pages behind a login, and it shows the exact tags the page sends. The checks catch the mistakes that break cards most often: a relative og:image path, an image on http, tags written twice, or no twitter:card.

Image size rules differ by app. Meta recommends 1200 × 630 pixels and allows files up to 8 MB, LinkedIn asks for at least 1200 × 627 and up to 5 MB, and X uses 2:1 for large cards with files under 5 MB. Load the image to see whether it meets each rule, and crop a picture to any of these sizes with the Social card mode of the Image Resizer, linked below. Slack, Discord and WhatsApp publish no image sizes, so their previews follow what the apps show today.

## Specs and sources

- [The Open Graph protocol](https://ogp.me/)
- [Meta for Developers: Images in link shares](https://developers.facebook.com/docs/sharing/webmasters/images/)
- [X Developer: About cards](https://developer.x.com/en/docs/x-for-websites/cards/overview/abouts-cards)
- [LinkedIn Help: Make your website shareable](https://www.linkedin.com/help/linkedin/answer/a521928)

## Limits

- The previews are sketches, not the apps' own code. Fonts, cropping and line counts change between app versions.
- Apps cache cards. After you fix the tags, refresh the cache with the Facebook Sharing Debugger or LinkedIn Post Inspector before you share again.
- Tags added by JavaScript after the page loads are not in the source you copy, and most apps do not see them either.
- Loading the image fetches it from its own server, which may log the request.

## Questions

### How do I preview how my link looks when shared?

Copy the page source (Ctrl+U in the browser), paste it here, and the tool draws the card for Facebook, LinkedIn, X, Slack, Discord and WhatsApp.

### Can I check a URL directly?

Not by typing the address: a static page cannot fetch other sites. Paste the source, or use the bookmarklet on the page itself; that also works on localhost, staging and pages behind a login, which URL-based checkers cannot reach.

### Why is my Open Graph image not showing?

The usual causes are a relative URL (og:image must start with https://), an image behind a login or blocked by robots.txt, an image too small for the app, or an old copy in the app's cache.

### What size should an Open Graph image be?

1200 × 630 pixels works for most apps. It meets Meta's recommendation, is close to LinkedIn's 1200 × 627, and X crops it a little to 2:1 for large cards.

### Does X (Twitter) use Open Graph tags?

Yes, as a fallback. X reads twitter:title, twitter:description and twitter:image first and uses the og: tags when they are missing, but it still needs twitter:card to choose the card type.

### How do I update a link preview after changing the tags?

Apps cache previews. Run the URL through the Facebook Sharing Debugger and the LinkedIn Post Inspector to fetch it again; other apps refresh over time.
