Back SEO

Open Graph Preview Tool

Preview how your website appears when shared on Facebook, Twitter/X, LinkedIn and WhatsApp. Edit Open Graph and Twitter Card meta tags and see live social media card mockups instantly.

Last updated: May 2026 · Reviewed by FreeDevTool SEO engineering team
Facebook / LinkedIn
1200 × 630 image
example.com
Page Title
Description...
Twitter / X
1200 × 628 image
example.com
Page Title
Description...
WhatsApp
Image preview
Page Title
example.com
Copied!

Open Graph and social link previews — the protocol that controls how your URL looks everywhere

Every link you share — in Slack, in iMessage, in a Discord channel, on LinkedIn, in WhatsApp, in a Tweet — renders as a card. The card's title, description, image, and brand badge are not picked by the platform; they are read out of the HTML <head> of the page you linked. Get the meta tags right and your links convert. Get them wrong and your URL shows up as a bare blue link with no preview at all. This guide is the working reference for Open Graph, Twitter Cards, and the platform-specific quirks that trip up every team's first marketing campaign.

Open Graph — the de-facto standard

The Open Graph protocol (originally Facebook's, now ubiquitous) is the meta-tag set every modern social platform reads. The minimum viable head:

<meta property="og:title"       content="Page Title — Brand">
<meta property="og:description" content="A two-sentence pitch that fits in 200 chars.">
<meta property="og:url"         content="https://example.com/canonical-page">
<meta property="og:image"       content="https://example.com/og-1200x630.jpg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:type"        content="website">
<meta property="og:site_name"   content="Brand Name">

Note the property= rather than name= — that is correct for OG tags. Mixing the two attributes is the most common reason a Facebook crawler "doesn't see" the tags.

Twitter Cards — the parallel namespace

Twitter (now X) reads its own twitter: namespace. Where a Twitter tag is missing, X falls back to the matching OG tag. The minimum:

<meta name="twitter:card"        content="summary_large_image">
<meta name="twitter:title"       content="Page Title">
<meta name="twitter:description" content="Description">
<meta name="twitter:image"       content="https://example.com/og-1200x630.jpg">
<meta name="twitter:site"        content="@yourbrand">
<meta name="twitter:creator"     content="@authorhandle">

Important: Twitter uses name=, not property=. Do not mix.

Image specs — the numbers each platform actually requires

PlatformRecommended dimensionsAspectMin sizeMax file sizeFormat
Facebook (large card)1200 × 6301.91:1600 × 3158 MBJPG, PNG, GIF, WebP
Twitter / X (summary_large_image)1200 × 628~1.91:1300 × 1575 MBJPG, PNG, WebP, GIF
Twitter / X (summary)240 × 2401:1144 × 1445 MBSame
LinkedIn1200 × 627~1.91:1600 × 3155 MBJPG, PNG, GIF
WhatsApp300 × 200 minimum, 1200 × 630 ideal1.91:1300 × 200300 KBJPG, PNG (≤ 600 KB hard cap on some clients)
Slack1200 × 630 ideal1.91:15 MBJPG, PNG, GIF
Discord1200 × 6301.91:18 MBJPG, PNG, GIF, WebP
iMessage1200 × 6301.91:1JPG, PNG

The single best image to ship for "everywhere" is 1200 × 630 JPG, < 300 KB, with text large enough to read at 200 px wide. That fits every platform's recommendations and keeps WhatsApp happy.

The crawlers — who reads what

Two operational rules: serve the same HTML to bots as to humans (cloaking is a guideline violation everywhere), and do not block these UAs in your robots.txt or WAF — that's the most common cause of "the link preview disappeared yesterday".

Cache invalidation — why old previews stick around

Every platform aggressively caches the meta tags from your URL. After you change the OG image, the cache can hold the old version for hours or days. Each platform has its own purge tool:

Production tip: bake a content hash into the OG image filename (og-card-a3b9.jpg) so the URL itself changes when the image does — bypassing every cache.

Per-page OG vs site-wide OG — which to ship

Hard rule: every important page should have unique OG tags. Site-wide identical tags cause every Facebook share to look the same — the "10 different blog posts all showing the homepage hero" problem. The pragmatic split:

Programmatic OG image generation — the modern pattern

Static OG images do not scale. The pattern that has won is server-rendered or build-time-rendered OG images using a templated SVG or HTML-to-image renderer. The best tools as of 2026:

Common Open Graph mistakes

Open Graph for non-website types

The og:type property unlocks platform-specific rich content. The values that matter in 2026:

Best Open Graph preview tool for 2026 — what to compare

Search results for "open graph preview", "og tag tester", and "twitter card validator" return a mix of single-platform validators (Facebook Sharing Debugger, X Card Validator) and multi-platform preview tools. Three things separate the good from the noise: whether the preview matches what each platform actually renders post-cache, whether Twitter / X Cards are first-class (not Facebook with a Twitter skin), and whether the tool generates ready-to-paste meta-tag HTML. Here is how the most-used OG tools compare in 2026:

ToolMulti-platform mockupsTwitter Card variantsGenerates HTMLNo upload / privacyCost
FreeDevTool Open Graph PreviewFacebook + X + LinkedInsummary, summary_large_imageYes (copy-ready)Browser-onlyFree
Facebook Sharing DebuggerFacebook onlyN/ANo (validation only)Server-side fetchFree (Meta)
X Card Validator (cards-dev.twitter.com)X onlyAll Twitter typesNoServer-side fetchFree (X)
LinkedIn Post InspectorLinkedIn onlyN/ANoServer-side fetchFree (LinkedIn)
opengraph.xyzFacebook + X + LinkedInBothNoServer-side fetchFree, ad-funded
metatags.ioFacebook + X + SlackBothYesServer-side previewFree
OG Image Playground (Vercel)One image previewImage-focusedImage onlyServer-side renderFree

How do I preview Open Graph tags before publishing without uploading my page?

Type the proposed page title, description, image URL, and canonical URL into the form fields at the top of this page. Live mockups for Facebook, X, and LinkedIn render instantly using the browser's DOM only — no upload, no third-party fetch. This matters for unannounced launches: tools like Facebook Sharing Debugger and X Card Validator fetch your URL from their servers, which means the unpublished URL has to be live and reachable, and Meta/X log every fetch. For previewing before deploy, this purely-client-side approach is the only one that doesn't leak your draft URL or unreleased copy. After you ship, run Facebook Sharing Debugger and X Card Validator to force a cache refresh — those cache previews aggressively (often 7+ days).

What's the difference between Open Graph, Twitter Cards, and oEmbed?

Three overlapping but distinct standards. Open Graph (Facebook, 2010) uses og:-prefixed meta tags — og:title, og:description, og:image, og:url, og:type. The de-facto universal standard; LinkedIn, WhatsApp, Slack, Discord, Telegram, iMessage all read OG tags. Twitter Cards (X, 2012) use twitter:-prefixed tags — primarily twitter:card (sets layout: summary or summary_large_image), twitter:site (publisher handle), twitter:creator (author handle). X falls back to OG tags when twitter-specific ones are missing, so most pages only need twitter:card + OG tags. oEmbed (2008) is a JSON/XML endpoint that platforms call to get rich-embed HTML — used by YouTube, Twitter (for tweet embeds), Spotify, Vimeo. Different mechanism, different use case (publisher-controlled rich embeds vs platform-agnostic share cards). For 99% of websites, OG tags + a single twitter:card tag covers everything.

Open Graph preview alternative to opengraph.xyz — 4 reasons developers switched

  1. Pre-publish preview without server fetch. opengraph.xyz, Facebook Debugger, and X Card Validator all need a live URL. This tool previews from form input only — works on draft copy, unannounced launches, and offline.
  2. Generates the HTML to paste, not just validates. Most validators tell you what's wrong; this generates the ready-to-paste <meta> tag block including OG, Twitter Card, and canonical reference.
  3. Three platforms side-by-side. Facebook, X, and LinkedIn render their share cards differently; seeing all three at once surfaces issues like LinkedIn's text-truncation rule (~120ch description) or X's image-aspect-ratio rule (1.91:1 for large cards) immediately.
  4. No ads, no popups, no upload. Tools indexed for "og preview" almost universally inject ads or save the URLs you submit. This page is browser-only and persists nothing.

Pair the OG preview with the Meta Tag Generator for the rest of head meta-tag stack, the Slug Generator for clean canonical URLs, the URL Encoder for percent-encoding image URL parameters, and the SEO Tools hub for the broader SEO toolkit.

Frequently Asked Questions

What are Open Graph tags and why do they matter?
Open Graph tags are HTML meta tags (prefixed with og:) that control how your URL appears when shared on Facebook, LinkedIn, WhatsApp and other platforms. They define the title, description, image and URL displayed in the share card. Without OG tags, platforms attempt to guess what to display, often resulting in poor-looking previews with wrong images or truncated text. Well-configured OG tags can increase social click-through rates significantly.
What image size should I use for Open Graph?
The recommended size is 1200×630 pixels (aspect ratio 1.91:1). Minimum is 200×200px, but images below 600px wide won't display as large cards on Facebook. For Twitter summary_large_image cards, use 1200×628px. Keep file size under 8MB and use JPG or PNG format for maximum compatibility across all platforms.
What is the difference between Open Graph and Twitter Cards?
Open Graph uses og: prefix tags and was created by Facebook for universal social sharing. Twitter Cards use twitter: prefix tags specifically for Twitter/X. The key difference: Twitter will fall back to OG tags if twitter-specific tags aren't present, so you can often use just OG tags for both. The unique Twitter tag is twitter:card which sets the card layout type (summary or summary_large_image).

Browse all 50 free developer tools

All tools run in your browser, no signup required, nothing sent to a server.