Open Graph checker: test OG tags and link previews
Enter a URL to see how it will look when shared on Facebook, X, LinkedIn and chat apps. The checker reads every og:* and twitter:* tag, measures the preview image, and tells you exactly what to fix.
Link previews (approximate — each platform applies its own layout, crop and cache)
Checks
Preview image
Tags found
| Field | Value |
|---|
Suggested tags
Your current values, with placeholders where something is missing. Paste into the page <head> and edit the TODO lines.
An Open Graph checker shows what a crawler sees when someone pastes your link into a post or a chat: the title, description and image declared in your page’s og:* and twitter:* meta tags. If a preview shows the wrong picture, no picture, or your site name instead of the article title, the cause is almost always in those few lines of HTML — and this page tells you which line.
How to check your Open Graph tags
- Enter the URL of the page you want to share and press Check tags. Redirects are followed, and the final URL is what gets analysed.
- Look at the previews. They are approximations of how Facebook, X, LinkedIn and chat apps lay out a link card, built from the tags each one reads.
- Work through the checks. Errors break previews; warnings make them worse on some platforms; notes are good practice. Each one says what to change.
- Fix and re-check. The Suggested tags box gives you a ready-to-edit block of tags with your current values filled in.
- Refresh the platforms’ caches after you deploy the fix (see below), or old shares will keep the old preview.
For a staging site, a page behind a login or anything on localhost, switch to Paste HTML: paste the page source and the same checks run in your browser.
The Open Graph tags every page needs
Open Graph is the protocol behind most link previews. It marks four properties as required for every page (ogp.me), and LinkedIn lists title, image, description and URL as the tags that must exist for its share previews (LinkedIn Help).
| Tag | What it does | Tip |
|---|---|---|
og:title | The headline of the card. Required. | Write it for a feed, not for search — it doesn’t need your brand name. |
og:type | The kind of object, e.g. website or article. Required. | Use article for posts; it unlocks article:* tags. |
og:image | The preview image. Required. | Use a full https:// URL; set width, height and alt too. |
og:url | The canonical URL of the object, used as its permanent ID. Required. | Match your <link rel="canonical">. |
og:description | One or two sentences under the title. Optional in the protocol, required by LinkedIn. | Say what the reader gets, not what the page is. |
og:site_name | The name of the overall site. | Shown above the title in many chat apps. |
og:image:alt | A description of the image. The protocol says a page that specifies og:image should specify it. | Describe the image, not the page. |
og:image:width / og:image:height | Image size in pixels. | Facebook says to specify them so the image loads properly the first time the link is shared. |
og:locale | The language and region of the content, e.g. en_US. | Facebook recommends it along with og:type. |
If a tag appears twice, the first one wins: the protocol gives preference to the first tag from top to bottom when values conflict. Duplicates usually come from a theme and an SEO plugin both writing tags — the checker flags them.
Twitter (X) card tags
X reads its own twitter:* tags and falls back to Open Graph for most of them, according to X’s card markup reference (X developer documentation, archived):
twitter:card— the card type:summary(small square image) orsummary_large_image(wide image). If it’s absent butog:type,og:titleandog:descriptionexist, a summary card may be rendered.twitter:title— maximum 70 characters; falls back toog:title.twitter:description— maximum 200 characters; falls back toog:description.twitter:image— under 5 MB; JPG, PNG, WEBP and GIF (first frame only); SVG is not supported. Falls back toog:image.twitter:image:alt— up to 420 characters; falls back toog:image:alt.
In practice, Open Graph plus one line — <meta name="twitter:card" content="summary_large_image"> — covers X.
og:image size: what each platform asks for
| Platform | Documented requirement |
|---|---|
| Minimum 1200 × 627 px, recommended ratio 1.91:1, max file size 5 MB (LinkedIn Help) | |
At least 1080 px wide for the best display on high-resolution devices; specify og:image:width and og:image:height (Meta sharing best practices) | |
| X — large image card | 2:1 ratio, minimum 300 × 157, maximum 4096 × 4096 px, under 5 MB (X docs, archived) |
| X — summary card | 1:1 ratio, minimum 144 × 144, maximum 4096 × 4096 px, under 5 MB, cropped to a square (X docs, archived) |
One image can satisfy all of them: 1200 × 630 pixels, PNG or JPEG, under 5 MB. It clears LinkedIn’s minimum and Facebook’s width recommendation, sits at roughly 1.91:1, and X crops it slightly for its 2:1 large card. Keep text and logos away from the edges so the crop doesn’t cut them. X also asks for a unique image per page rather than a generic site logo — a sensible rule everywhere.
Why your link preview is wrong — and how to fix it
The old image or title keeps showing
Platforms cache previews. Facebook caches images by URL and won’t update them unless the URL changes (Meta for Developers), so upload a changed image under a new file name, then run the page through theSharing Debugger, which triggers a fresh scrape. On LinkedIn, usePost Inspector to refresh the URL.
No image at all
Check the Preview image table above. Common causes: og:image is a relative path, the image returns 403 or 404 to crawlers (hotlink protection, a protected directory, a CDN rule), it’s an SVG, or it’s over 5 MB. LinkedIn notes that an image meeting the requirements can still fail if the site blocks LinkedIn from pulling it.
Tags exist in the browser but not here
The tags are probably added by JavaScript after the page loads. Crawlers read the HTML the server sends, so move the tags into server-rendered or pre-built HTML. Single-page apps usually need server-side rendering or prerendering for share previews.
The wrong page is previewed
If the URL redirects, crawlers preview the final page. The checker shows the redirect count; theredirect checker lists every hop. Also make sure og:url points at the page itself rather than your homepage — a common template mistake.
Open Graph tags vs. SEO meta tags
The <title>, meta description and canonical link are for search engines; Open Graph and Twitter tags are for shares. They can differ — a share headline can be punchier than a search title — but the canonical URL and og:url should agree, and a noindex robots directive is worth knowing about before you promote a page. The checker reports all of them, including an X-Robots-Tag HTTP header.
What the checker does with your URL
Our server requests the page once, follows up to eight redirects, reads at most the first 600 KB (it stops at the end of the <head>), and downloads the first part of up to two preview images to read their size and format. It only fetches public http(s) addresses on standard ports and refuses private, local and cloud-metadata IPs — including when a redirect points there. Nothing is stored. The preview cards then load the image directly in your browser. If you are sharing a campaign link, build it with theUTM builder; if you are sharing someone else’s, strip the tracking first with theURL cleaner.
Frequently asked questions
What does an Open Graph checker do?
It fetches a page the way a link-preview crawler does, reads the Open Graph (og:*) and Twitter card (twitter:*) tags in the HTML head, and shows what a shared link will look like. This one also downloads the preview image to check its format, pixel size and file size, and lists every missing or invalid tag with a fix.
Which Open Graph tags are required?
The Open Graph protocol names four required properties: og:title, og:type, og:image and og:url. LinkedIn says og:title, og:image, og:description and og:url must exist for its previews, so in practice set all five, plus og:image:alt for the image.
What size should my og:image be?
There is no single official size. LinkedIn asks for at least 1200 × 627 pixels at a 1.91:1 ratio and under 5 MB. Facebook recommends images at least 1080 pixels wide. X’s large-image card uses a 2:1 ratio with a 300 × 157 minimum and a 5 MB limit. A 1200 × 630 PNG or JPEG under 5 MB meets all of those.
Why does Facebook or LinkedIn still show my old preview?
Platforms cache link previews. Facebook caches images by URL and won’t refresh them until the URL changes, so publish an updated image under a new file name, then run the page through Facebook’s Sharing Debugger to trigger a fresh scrape. LinkedIn’s Post Inspector does the same for LinkedIn.
Do I need Twitter card tags if I already have Open Graph tags?
X falls back to Open Graph for most fields: twitter:title falls back to og:title, twitter:description to og:description and twitter:image to og:image. Without twitter:card, X may still render a small summary card from og:type, og:title and og:description. Add twitter:card with the value summary_large_image if you want the large image layout.
Does the checker run JavaScript?
No. It reads the HTML the server returns, which is what most link-preview crawlers read too. If your tags only appear after client-side JavaScript runs, they will be missing here — and probably in real shares. Render them on the server or at build time.
Can I check a staging or localhost page?
Not by URL: for safety the checker only fetches public addresses and blocks private, local and cloud-metadata IPs. Use the Paste HTML tab instead — paste the page source and it is analysed entirely in your browser, with image sizes measured locally.
Are the previews exactly what each platform will show?
No — they are approximations, built from the tags each platform documents. Every network applies its own layout, cropping, truncation and cache, and changes them over time. Use the previews to catch missing images and bad titles, then confirm with the platform’s own debugger before a big launch.





