Open Graph Preview

Preview how your link looks on Facebook, X, LinkedIn and Discord — and get the meta tags.

Runs in your browserUpdated Built and maintained by Leon and Henrik

Type your title, description and image, and watch live Facebook, X, LinkedIn and Discord cards update — then copy the matching Open Graph and Twitter meta tags. Free. No sign-up. Runs in your browser and loads data from a third party.

Open Graph Preview

Link details

0 / 60

The headline of the shared card. Aim for roughly 60 characters so it isn't cut off.

0 / 160

Most platforms show roughly 110–160 characters.

The canonical link. Its domain shows on the card.

Your brand name, shown on some platforms.

Recommended 1200×630 px. This URL is what goes in your tags. An uploaded file is only used for the preview.

Or upload to preview

Preview a local file (PNG, JPG, WebP or GIF). It never leaves your browser.

Live preview

No image — og:image preview

example.com

Your Open Graph title

Your og:description shows here — the summary of the shared link.

LinkedIn always uses a large image. Facebook, X and Discord follow the card type you select above.

Generated meta tags

Fill in a title to generate your Open Graph and Twitter tags.

Paste these inside your page's <head>. Because the preview is form-driven, it works for unpublished drafts, and your text is never uploaded. An uploaded image is previewed locally only. If you type an image URL, your browser loads that image from its host to show the preview. Put a public og:image URL in the field for the real tags.

Runs in your browser
Loads data from a third party

Fill in a title, description, URL, image and site name, and four live cards — Facebook, X, LinkedIn and Discord — update as you type. Underneath, the matching og: and twitter: meta tags are ready to copy into your page's <head>. Because nothing is fetched, you can perfect the card while the page is still a draft.

The tag set this tool generates

TagWhat it controlsNote
og:titleCard headlineAlso used as twitter:title
og:descriptionOne or two lines under the headlineDiscord shows the most of it
og:imagePreview imageMust be an absolute https:// URL
og:urlThe canonical address of the pagePlatforms use it to identify the page
og:site_nameBrand name shown above or below the titleOptional but tidy
og:typewebsite, article, product, video.other or profilewebsite for most pages, article for posts
twitter:cardsummary_large_image or summaryLarge banner vs small square thumbnail
twitter:title, twitter:description, twitter:imageX's copies of the aboveFilled from the same fields

Empty fields are left out rather than written as blank tags, and quotes, ampersands and angle brackets in your text are escaped so a headline like "Best" tools & tips can't break the HTML.

Image specs that avoid ugly crops

  • 1200 × 630 px (1.91:1) is the size to design for. It fills the large card on Facebook, LinkedIn and Discord.
  • X's large card is 2:1, so a 1200 × 630 image loses about 15 px from the top and bottom. Keep text and faces away from the edges.
  • X's documented limits for that card are at least 300 × 157 px and under 5 MB.
  • For a summary card, the image is shown as a small square thumbnail next to the text. A logo or icon works better there than a wide banner, which gets cropped to its middle.
  • Use an absolute, public URL. A relative path (/img/og.png), an image behind a login or one on localhost won't load for any platform's crawler.

Why the four cards look different

  • Facebook shows the domain in small caps above the title. It doesn't read twitter:card: it decides between the large and the compact layout mainly from your image's size, so the preview's compact mode stands in for a small or missing image.
  • X follows twitter:card and shows the domain with a link glyph.
  • LinkedIn effectively always renders a large image with title and domain underneath. Design for the wide image.
  • Discord builds a bordered embed: site name, a coloured title, more of the description than the others, then the image — below the text for a large card, as a small thumbnail for a compact one.

Switch through the tabs before you ship; a title that fits on X can still wrap awkwardly on Discord.

"I changed the tags but the old card still shows"

Platforms cache the first version of a link they see and keep reusing it. After changing tags:

  • Facebook: run the URL through the Sharing Debugger and press Scrape Again.
  • LinkedIn: the Post Inspector re-fetches the page and shows what it found.
  • X: the old Card Validator no longer shows previews. Paste the link into a new post draft to see the current card; X refreshes its cache on its own schedule.

A common workaround is sharing the URL with a harmless query string (?v=2), which looks like a new link to most caches. It won't help on Facebook if og:url still points to the old address, because Facebook treats og:url as the page's identity.

Previewing before the page exists

URL-based preview checkers only work once a page is public. This one is form-driven, so you can settle on the title, description and image while the page is still on staging, paste the tags into your template, and have the card right from the first share. Uploaded images stay on your device and are released as soon as you replace or clear them.

For the rest of the <head> — description, robots, canonical — use the meta tag generator; to see how the same page reads in Google results, try the SERP snippet preview.

Frequently asked questions