What Is OpenGraph?
OpenGraph (OG) is a protocol created by Facebook in 2010 that lets a web page describe itself to social platforms using meta tags. When someone shares your URL, the platform reads these tags and renders a rich preview card with a title, description, and image.
Since then, the protocol has been adopted by LinkedIn, WhatsApp, Discord, Slack, Telegram, Signal, Pinterest, iMessage and dozens of other apps. It's the universal language of link previews.
The Core OpenGraph Tags
| Tag | Purpose | Priority |
|---|---|---|
og:title | Bold headline in the card | Critical |
og:description | Short summary below the title | High |
og:image | The featured image | Critical |
og:url | Canonical URL of the page | High |
og:type | Content type (website, article, product…) | Medium |
og:site_name | Brand/site name | Medium |
og:locale | Language and region | Medium |
Image Specifications That Actually Work
| Property | Recommendation |
|---|---|
| Recommended size | 1200 × 630 px (1.91:1 aspect ratio) |
| Minimum size | 600 × 315 px (anything smaller gets squished) |
| Maximum size | 8 MB on Facebook (aim for < 300 KB for speed) |
| Format | JPG, PNG, WebP, or GIF (non-animated) |
| URL | Must be an absolute HTTPS URL |
| Safe zone | Keep key content in the centre — some platforms crop |
Content Type Tags
Beyond the core tags, OpenGraph defines vertical-specific tags. Choose the og:type that matches your page and add the corresponding block:
- article —
article:published_time,article:modified_time,article:author,article:section,article:tag - product —
product:price:amount,product:price:currency,product:availability,product:brand - video.* —
og:video:url,og:video:width,og:video:height,og:video:duration,og:video:type - profile —
profile:first_name,profile:last_name,profile:username - book —
book:author,book:isbn,book:release_date,book:tag
Common OpenGraph Mistakes
- Relative image URL — social scrapers can't resolve
/images/og.jpg. Always use the full URL. - Image too small — Facebook silently drops images under ~200×200 and shrinks the card.
- Missing og:url — platforms may display the wrong URL when parameters are present.
- Duplicate OG tags — some CMS plugins and themes both output them, and scrapers may pick the wrong one.
- No og:image:alt — hurts accessibility and the alt text quality signal.
- HTTP instead of HTTPS — most platforms require HTTPS images and will show a placeholder otherwise.
- Text too long — descriptions over ~200 chars get truncated mid-sentence.
- Stale cache — after changing OG tags, always re-scrape with the platform's debugger to force a cache refresh.
How to Use This Generator
- Core tab: Fill in title, description, URL, site name, locale and pick your og:type.
- Content Type tab: Add the specific tags for your og:type (article, product, video, profile, book).
- Image Validator tab: Paste an OG image URL — the tool fetches it and reports dimensions, size, aspect ratio and readiness for each platform.
- Watch the live previews update for Facebook, Twitter/X, LinkedIn, WhatsApp and Discord.
- Copy the code and paste it inside the
<head>of your page. - Validate: use the Facebook Sharing Debugger, LinkedIn Post Inspector and X Card Validator to force a re-scrape.
Pro Tip: After updating OG tags on a live page, immediately run it through the Facebook Sharing Debugger and click "Scrape Again". Facebook caches OG data aggressively, and it may take 24–48 hours for the new image to appear in shares otherwise.
⚠️ AI-Generated Tool Notice: This generator was built with AI assistance. The platform previews are simplified mock-ups and may not match the exact current design of each platform. Always verify your final cards on the live debuggers before relying on them for a campaign.