MentorMakers Login Sign up

Do More with MentorMakers

Free tools. Powerful features. Built for a smarter tomorrow.

  • 129 Free Tools
  • Most tools — no signup
  • Temporary files handled for processing
  • AI Assistant built in
  • Made in Pakistan 🇵🇰
Explore All Tools
SEO & Website Optimization Sep 25, 2026 · 2 min read

What Are Open Graph Tags?

Open Graph tags control how a link looks when shared on Facebook, LinkedIn, WhatsApp and other platforms — the title, image and description shown in the preview.

M By the Mentor Makers team
What Are Open Graph Tags?

When a URL is shared on Facebook, LinkedIn, WhatsApp, Slack or Twitter/X, the platform shows a preview — a card with an image, title and description. Without Open Graph tags, the platform guesses what to show, often picking the wrong image or showing a bare link with no image at all. Open Graph tags put you in control.

The Core Tags

``html <meta property="og:title" content="Page Title Here"> <meta property="og:description" content="A short description of this specific page."> <meta property="og:image" content="https://yourdomain.com/images/page-image.jpg"> <meta property="og:url" content="https://yourdomain.com/this-page"> <meta property="og:type" content="website"> ``

These four og: tags are what every shared link preview is built from. Twitter/X has its own equivalent (Twitter Card tags) but will fall back to Open Graph if Twitter tags are absent.

Generating Open Graph Tags

  1. Open Open Graph Generator.
  2. Fill in the title, description, image URL and page URL.
  3. Copy the generated meta tags.
  4. Paste them into the page's <head>.

The Image: What Works

The Open Graph image is the most visible element in a shared link. Recommendations:

  • Dimensions: 1200×630 pixels is the widely used standard.
  • Format: JPG or PNG.
  • File size: keep under 300 KB — large images load slowly in previews.
  • Content: should relate to the page's topic; generic site images work poorly.
  • Text on image: if included, keep it large and legible — the image appears small on mobile.

Testing the Preview

Facebook has a debugger at developers.facebook.com/tools/debug/ that shows how any URL will appear when shared and forces Facebook to refresh its cached version. LinkedIn has linkedin.com/post-inspector/. For Twitter/X, the Card Validator in its developer tools does the same.

After changing Open Graph tags, the social network's cache may still show the old version for a while — use these debuggers to force an update.

Why Every Page Needs Its Own Image

A shared link showing the homepage image when the page is about a specific tool or article looks lazy. More importantly, a relevant image gets more engagement. Set per-page Open Graph images in your CMS or templating system where possible. For why previews sometimes show the wrong image, see why your link preview shows the wrong image.

Updating Previews After Changing Tags

Social platforms cache Open Graph data when they first encounter a URL. After changing your tags, the cached version persists until the platform re-crawls or you force a refresh through a debugging tool. Facebook's Sharing Debugger at developers.facebook.com/tools/debug/ forces an immediate re-crawl. LinkedIn's Post Inspector does the same. For Twitter/X, the Card Validator refreshes the preview. Without using these tools, a changed image may take hours or days to appear in shares. For the specific case of a preview showing the wrong image, the causes and platform-specific fixes are in why your link preview shows the wrong image.

#open graph tags #social sharing #og meta tags

Frequently Asked Questions

What are Open Graph tags?

Meta tags in a page's `<head>` that tell social platforms what title, description and image to use when someone shares that URL.

Do Open Graph tags affect Google rankings?

No directly. They affect how a page looks when shared on social media, not how it ranks. But better-looking shares can lead to more clicks and visits.

What happens if I don't add Open Graph tags?

Platforms guess what to show — often picking an unsuitable image, using the page's meta description, or generating a plain text preview with no image.

Can different pages on my site have different Open Graph images?

Yes, and they should. Each page should have an Open Graph image that represents that specific page's content.

Try it yourself

Do it in seconds Free

Every tool on MentorMakers is free — or just tell the AI Assistant what you need.

Browse all tools

0 Comments

Log in to comment

← Back to blog

Advertisement
Processing your file…
This can take a few seconds for larger files.
Bookmark this page
Press Ctrl+D for quick access next time