ยท9 min read

How to Test OG Images: Every Tool & Method (2026 Guide)

You've added Open Graph tags to your site. But how do you know they actually work? Here's every tool and method to test your OG images before sharing.

Why You Need to Test OG Images

Open Graph images are what people see when your link gets shared on social media, Slack, Discord, or messaging apps. A broken or missing OG image means your content looks unprofessional โ€” or worse, invisible.

The problem? Each platform has its own quirks:

Testing before you share saves you from embarrassing broken previews.

The Quick Method (30 Seconds)

The fastest way to test your OG tags is with a multi-platform checker that validates everything at once:

  1. Go to OGMagic OG Checker
  2. Paste your URL
  3. Get a score, see all your tags, and preview how your link looks on social media

It checks for og:title, og:description, og:image, Twitter card tags, image dimensions, and more โ€” all in one place.

๐Ÿ’ก Bookmark the shareable URL: ogmagic.dev/tools/og-checker?url=yoursite.com โ€” great for sharing audit results with your team.

Facebook Sharing Debugger

Facebook's official tool lets you see exactly what Facebook's crawler sees when it fetches your page.

How to use it

  1. Go to developers.facebook.com/tools/debug
  2. Paste your URL and click "Debug"
  3. Review the scraped properties

Key things to check

๐Ÿ’ก Click "Scrape Again" to force Facebook to re-fetch your page. This clears the cache for that URL. You might need to click it twice โ€” once to clear, once to re-fetch.

Twitter/X Card Validator

Twitter deprecated their official Card Validator tool in 2022, but you can still test Twitter cards:

Method 1: Use a third-party validator

Our Twitter Card Preview tool shows exactly how your link will appear in a tweet โ€” including the image, title, description, and domain.

Method 2: Tweet it (with a private account)

The most reliable test is to actually tweet the URL from a private/alt account. Twitter will show the real card preview. Delete the tweet after testing.

Twitter-specific requirements

Skip the manual testing

OGMagic generates perfect OG images via API โ€” always the right size, always valid tags.

LinkedIn Post Inspector

LinkedIn has its own post inspector tool for testing how links appear in posts.

  1. Go to linkedin.com/post-inspector (requires login)
  2. Paste your URL
  3. See the preview and any warnings

Or use our LinkedIn Preview tool โ€” no login required.

LinkedIn-specific gotchas

Discord & Slack Previews

Discord and Slack both generate rich previews from OG tags, but there's no official testing tool for either. Here's how to test:

Discord

Slack

Multi-Platform Testing Tools

Instead of testing on each platform separately, use a tool that checks everything at once:

ToolPlatformsFree
OGMagic OG CheckerAll (OG + Twitter + score)โœ… No signup
opengraph.xyzFacebook, Twitter, LinkedInLimited free
metatags.ioGoogle, Facebook, Twitterโœ…
socialsharepreview.comFacebook, Twitter, LinkedInโœ…

Testing with cURL (Developer Method)

Want to see exactly what crawlers see? Fetch your page's HTML and check the meta tags directly:

# Fetch and show all OG tags
curl -s https://yoursite.com | grep -i 'property="og:\|name="twitter:'

# Check if og:image URL returns a valid image
curl -sI "$(curl -s https://yoursite.com | grep 'og:image' | head -1 | grep -o 'content="[^"]*"' | cut -d'"' -f2)" | head -5

This is useful for debugging in CI/CD pipelines or when you want to check many URLs at once.

Common Issues & Fixes

Image not updating after changes

Social platforms cache OG data aggressively. To force a refresh:

Image shows on some platforms but not others

Usually means you have og:image but not twitter:image (or vice versa). Add both:

<meta property="og:image" content="https://yoursite.com/og.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://yoursite.com/og.png" />

Image looks blurry or cropped

Use 1200ร—630 pixels โ€” this is the universal safe size that works well on every platform. Keep important content away from the edges (platforms crop differently).

OG tags not being detected

Common causes:

For a deeper dive, check our guide on fixing OG images that aren't showing.

Automate It: Never Worry Again

The best way to avoid OG image issues? Generate them automatically with an API. Instead of manually designing and uploading images, use a URL-based approach:

<meta property="og:image"
  content="https://ogmagic.dev/api/og?title=Your+Page+Title&template=gradient-mesh" />

Benefits of API-generated OG images:

Skip the manual testing

OGMagic generates perfect OG images via API โ€” always the right size, always valid tags.

๐Ÿ“ฌ

Get OG tips & product updates

Join our newsletter for Open Graph best practices, new template releases, and exclusive discounts. No spam, unsubscribe anytime.

๐Ÿ”’ We respect your inbox. No spam, ever.