DataHub Tools Open Graph Preview

Open Graph Preview Tool

Local-first

Preview a social card from Open Graph title, description, URL, and image fields.

How this tool actually works

This tool reads title, description, url, and image key=value lines and returns a div-based HTML mockup as text. It does not fetch a page, parse real og:* metadata, display a visual preview, or reproduce platform-specific cropping and truncation.

  • Read four Open Graph-style fields
  • Generate a static HTML mockup snippet
  • Keep processing local in the browser

How to use it

  1. Enter title, description, url, and image as key=value lines.
  2. Use absolute public URLs, including a full image URL.
  3. Generate the HTML snippet and inspect it separately in a safe test page.
  4. Use each platform's debugger or sharing tool to test the deployed page metadata.

Quick example

Example input

title=Data quality guide
description=Practical checks for analytics data.
url=https://example.com/guide/
image=https://example.com/guide-1200x630.jpg

Expected result

A <div class="og-preview"> HTML string containing the supplied image, title, description, and URL.

The output is code, not a rendered social-card preview. It cannot prove what LinkedIn, X, or another crawler will fetch or display.

Best use cases

  • Draft a local HTML mockup from four fields.
  • Review whether absolute sharing URLs are present.
  • Prepare test data before using platform-specific debuggers.

References and scope

The Open Graph protocol defines page metadata, while social platforms decide how to fetch, cache, crop, and display it. A static div cannot reproduce those systems.

Sources checked July 24, 2026. Specifications and platform behavior can change; verify the sources before formal use.

Known limitations

  • The page does not fetch or inspect the URL.
  • It does not parse actual meta property="og:*" elements.
  • Platform image ratios, caches, truncation, and fallback behavior are not simulated.

FAQ

Does it fetch my page automatically?

No. It only reads the four fields you paste.

Does it show a visual preview?

No. The current output is an HTML mockup string in the result area.

Does it validate real og:* tags?

No. Inspect the deployed page source and use platform debugging tools.

Should image and page URLs be absolute?

Yes. Public sharing metadata should use complete, crawlable URLs.