Back to Tools

OG Preview Tool

Preview how a webpage will appear when shared on Twitter/X, Facebook, LinkedIn, and Slack. Test a live URL or raw HTML, inspect Open Graph and Twitter Card metadata, and catch missing tags, unsuitable image dimensions, and relative image URLs before publishing.

Error

Tool Details

See How Your Page Will Look Before You Share It

A webpage can look polished in the browser and still produce a broken, empty, or awkward preview when shared on social media.

You paste the link into Slack and the image is missing. You share it on LinkedIn and the title gets cut off. Facebook picks the wrong description. X shows a plain link instead of the large image card you expected.

These problems usually come from incomplete or incorrect metadata inside the page's <head> section.

The OG Preview Tool on CoolDev.Tools helps you inspect that metadata before publishing or sharing a page. Paste a public URL or provide raw HTML, and the tool generates previews for:

  • Twitter/X
  • Facebook
  • LinkedIn
  • Slack

It also checks the supplied metadata and warns you about issues such as missing tags, unsuitable image dimensions, and relative image URLs that real social media crawlers may not resolve correctly.

This gives developers, marketers, writers, and SEO teams a quick way to catch social-sharing problems before visitors do.


What Is an Open Graph Preview?

An Open Graph preview is the visual card shown when someone shares a webpage on a social platform or messaging application.

A typical preview contains:

  • Page title
  • Short description
  • Featured image
  • Website or domain name
  • Page URL

The information usually comes from Open Graph tags such as:

<meta property="og:title" content="A Practical Guide to Laravel Queues">
<meta property="og:description" content="Learn how to run, monitor, and scale queues in Laravel.">
<meta property="og:image" content="https://example.com/images/laravel-queues.png">
<meta property="og:url" content="https://example.com/guides/laravel-queues">
<meta property="og:type" content="article">

Platforms may also use Twitter Card tags, ordinary HTML metadata, or their own fallback rules when preferred tags are missing.

The preview tool brings these signals together so you can understand what a shared link is likely to communicate.


Preview a Live URL

The fastest way to inspect an existing webpage is to paste its URL into the tool.

For example:

https://example.com/blog/database-indexing

The tool reads the page metadata and creates platform-style preview cards.

This is useful when checking:

  • A newly published blog post
  • A product landing page
  • A documentation page
  • A portfolio project
  • An event announcement
  • A news article
  • A campaign page

Testing the final URL is especially valuable because it reveals problems that may not be visible in your source template, such as missing production assets, incorrect canonical URLs, or metadata generated differently on the deployed site.


Test Raw HTML Before Publishing

You do not need to publish a page before testing its social metadata.

Paste the raw HTML containing your <head> tags, and the tool can build previews directly from that code.

Example:

<!doctype html>
<html lang="en">
<head>
    <title>Online JSON Formatter and Validator</title>

    <meta
        name="description"
        content="Format, validate, and inspect JSON directly in your browser."
    >

    <meta property="og:title" content="Online JSON Formatter">
    <meta
        property="og:description"
        content="Format and validate JSON with readable errors and instant results."
    >
    <meta
        property="og:image"
        content="https://example.com/social/json-formatter.png"
    >

    <meta name="twitter:card" content="summary_large_image">
</head>
</html>

Raw HTML mode is helpful while:

  • Building a new page
  • Reviewing a pull request
  • Updating Blade, React, Vue, or Next.js templates
  • Preparing metadata for a client
  • Debugging generated server-side HTML
  • Designing a reusable SEO component

It shortens the feedback loop because you can test metadata without repeatedly deploying the page.


Twitter/X Card Preview

X uses Twitter Card metadata to create rich previews for shared links.

Common tags include:

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Page title">
<meta name="twitter:description" content="Page description">
<meta name="twitter:image" content="https://example.com/share-image.png">

The card type affects how prominently the image appears. A summary_large_image card is commonly used for articles, tools, product pages, and announcements where the visual is important.

The preview helps you check whether:

  • The title is readable
  • The description is useful
  • The image suits a wide card
  • The card type is configured
  • Open Graph fallbacks provide enough information

Facebook Preview

Facebook commonly relies on Open Graph metadata when generating link previews.

Important tags include:

<meta property="og:title" content="Page title">
<meta property="og:description" content="Page description">
<meta property="og:image" content="https://example.com/share-image.png">
<meta property="og:url" content="https://example.com/page">
<meta property="og:type" content="website">

The Facebook-style preview makes it easier to notice titles that are too long, descriptions that add little value, or images whose main subject may be cropped.

This is particularly useful for:

  • Blog posts
  • Company announcements
  • Product launches
  • Public events
  • Marketing campaigns

LinkedIn Preview

LinkedIn also reads Open Graph metadata when someone shares a webpage.

A professional-looking LinkedIn preview should communicate the page's purpose immediately. The title should be specific, the description should add useful context, and the image should remain understandable at card size.

For example, this title is vague:

Our Latest Update

A clearer alternative is:

Introducing Real-Time Webhook Forwarding for Local Development

The second version gives readers a reason to stop scrolling and understand what the link contains.


Slack Link Preview

Slack expands many shared links into an unfurled preview containing the page title, description, domain, and image.

Broken metadata becomes especially noticeable in team channels because links are often shared for:

  • Pull request discussions
  • Incident reports
  • Internal documentation
  • Product specifications
  • Customer references
  • Technical articles

The Slack preview lets you check whether your link will provide useful context or appear as an unexplained URL dropped into the conversation.


Detect Missing Social Metadata

A preview card can only be as good as the metadata behind it.

The tool warns you when important tags are missing, helping you identify issues such as:

  • Missing og:title
  • Missing og:description
  • Missing og:image
  • Missing page title
  • Missing meta description
  • Missing Twitter Card type
  • Missing canonical or page URL information

Not every page needs every possible tag, but essential fields should normally be present when a page is expected to be shared publicly.


Catch Relative Image URLs

One common mistake is using a relative path for the social image:

<meta property="og:image" content="/images/social-card.png">

A browser can resolve this path because it already knows the current website. An external crawler may require a complete, absolute URL.

A safer version is:

<meta
    property="og:image"
    content="https://example.com/images/social-card.png"
>

The tool highlights relative image URLs so you can fix them before they produce missing thumbnails on real platforms.

This small mistake is easy to overlook because the image may still work perfectly when viewed directly on your own website.


Check Social Image Dimensions

A technically valid image may still produce a poor preview if its dimensions or aspect ratio do not suit social cards.

Common problems include:

  • Images that are too small
  • Tall portrait images used in wide cards
  • Important text placed near crop boundaries
  • Logos that become unreadable
  • Low-resolution graphics
  • Different images defined for different metadata systems

The tool warns when image dimensions appear unsuitable, giving you a chance to prepare a better social image.

A wide image designed specifically for link sharing usually works better than reusing a random image from the page content.


Why Social Preview Testing Matters

Social previews influence whether people understand and trust a shared link.

A strong preview can:

  • Explain the page before it is opened
  • Improve visual consistency
  • Increase confidence in the link
  • Support branding
  • Make shared content easier to scan

A broken preview can make a legitimate page look unfinished.

This matters not only for public social media posts but also for internal communication. A clear Slack unfurl can save colleagues from opening several links just to discover which one is relevant.


How to Use the OG Preview Tool

Step 1: Choose Your Input

Paste either:

  • A webpage URL
  • Raw HTML containing metadata

Step 2: Generate the Preview

The tool reads the available Open Graph, Twitter Card, and standard HTML metadata.

Step 3: Compare Platforms

Review the generated previews for:

  • Twitter/X
  • Facebook
  • LinkedIn
  • Slack

Step 4: Read the Warnings

Check for missing fields, image problems, and URLs that may fail for external crawlers.

Step 5: Fix and Test Again

Update your metadata and repeat the preview until the cards look clear and consistent.


Practical Tips for Better Link Previews

Write a title that describes the specific page rather than repeating only the company name.

Keep the description useful. It should explain what the visitor will find after opening the link.

Use an absolute HTTPS URL for the social image.

Design the image for card-sized viewing. Large paragraphs and tiny interface screenshots rarely work well.

Keep important visual elements away from the edges because platforms may crop images differently.

Use page-specific metadata. Reusing the homepage title and image across every route makes individual links difficult to distinguish.

Remember that social platforms may cache metadata. After fixing a live page, the old preview may remain visible until that platform refreshes its stored version.


Frequently Asked Questions

What does OG mean?

OG stands for Open Graph, a metadata system used to describe how webpages should appear when shared.

Can I preview a page before publishing it?

Yes. Paste the raw HTML containing your metadata and inspect the generated cards before deployment.

Does the tool support Twitter/X cards?

Yes. It includes a Twitter/X-style preview and checks relevant Twitter Card information.

Why is my social image missing?

Common causes include a missing image tag, a relative URL, an inaccessible file, an unsupported format, or an image that a crawler cannot fetch.

Why does each platform show my link differently?

Platforms apply their own layouts, cropping rules, metadata priorities, and caching behaviour. The same metadata can therefore appear slightly different across services.

Is an Open Graph image the same as a normal page image?

Not necessarily. A dedicated social image is usually designed with a wide layout, clear branding, and text that remains readable in a small preview.

Can I test HTML copied from my local project?

Yes. Raw HTML mode is useful for testing metadata generated by local templates before the page is publicly accessible.

Does a successful preview guarantee the platform will display exactly the same card?

The tool provides a close platform-style preview based on the supplied metadata. Actual platforms may apply their own cropping, caching, fallbacks, or layout updates.


Conclusion

Social metadata is easy to ignore because it sits quietly inside the page source. Its impact only becomes visible when someone shares the link and the resulting card is missing an image, showing the wrong title, or giving no useful context.

The OG Preview Tool on CoolDev.Tools helps you catch those problems early. Paste a public URL or raw HTML, compare previews for Twitter/X, Facebook, LinkedIn, and Slack, and review warnings for missing metadata, unsuitable image dimensions, and crawler-breaking relative URLs.

It is a practical final check for developers, marketers, content teams, and website owners who want every shared link to look deliberate rather than accidental.