All Tools

Open Graph Generator

Create OG tags for social sharing

Properties

Preview

HTML

Advertisement Space
Open Graph Generator: An Open Graph generator creates the og: meta tags that control how your link looks when shared on Facebook, LinkedIn, WhatsApp and other platforms. Enter your title, description, image and URL, and copy the ready og: tags.

Frequently Asked Questions

What is Open Graph markup?
Open Graph is a protocol that lets you define a page's title, description, preview image and type using og: meta tags. Social platforms read these tags to build a rich link preview.
What Open Graph tags are required?
The core tags are og:title, og:description, og:image, og:url and og:type. Adding og:image is the most impactful because the preview image drives clicks.
What is the best Open Graph image size?
Use 1200×630 pixels (a 1.91:1 ratio) for the sharpest preview across Facebook, LinkedIn and Twitter. Keep important text away from the edges.
How do I test my Open Graph tags?
After adding the tags, use each platform's debugger (such as Facebook's Sharing Debugger) to fetch fresh data and preview how your link will appear.
📤 Share This Tool
Found this useful? Share with friends!

Open Graph tags: the full reference

Four Open Graph tags are required for a valid share preview: og:title, og:type, og:image and og:url. Everything else is optional. The image is the one that actually decides whether a link gets clicked, and the safe specification is 1200×630 px, under 5 MB, served over HTTPS at an absolute URL.

The core tags

TagRequired?Notes
og:titleYesThe headline in the card. Keep under about 60 characters.
og:typeYeswebsite, article, product, video.other and others
og:imageYesAbsolute HTTPS URL. Relative paths silently fail.
og:urlYesThe canonical URL. Shares of variants collapse onto this.
og:descriptionRecommendedTwo lines of context. Under about 155 characters.
og:site_nameRecommendedYour brand, shown above or below the title
og:localeOptionalSuch as en_IN; defaults to en_US
og:image:width / :heightRecommendedLets the platform reserve space before the image loads
og:image:altRecommendedAccessibility, and it is read by some screen readers in feeds
article:published_timeFor articlesISO 8601 datetime
article:authorFor articlesURL or name

Twitter / X card tags

TagValueNotes
twitter:cardsummary_large_imageThe wide card. Use summary for the small square one.
twitter:titleTextFalls back to og:title if absent
twitter:descriptionTextFalls back to og:description
twitter:imageAbsolute URLFalls back to og:image
twitter:site@handleThe publisher account
twitter:creator@handleThe author account

Image sizes that work on each platform

PlatformRecommended sizeAspect ratioNotes
Facebook, LinkedIn1200 × 6301.91:1The de facto standard. Minimum 200×200.
X / Twitter (large card)1200 × 6281.91:1Under 5 MB; PNG, JPEG, WEBP or GIF
WhatsApp1200 × 6301.91:1Also renders a small square thumbnail; keep the file under 300 KB or it may be skipped
Slack, Discord1200 × 6301.91:1Both read standard Open Graph
Pinterest1000 × 15002:3Vertical performs far better in the feed
Telegram1200 × 6301.91:1Caches aggressively

Where Open Graph tags must go

All of them belong in the <head>, as <meta property="og:..." content="...">. Note that Open Graph uses property, not name — Twitter card tags use name. Getting the attribute wrong is the single most common reason a tag is silently ignored. Crawlers also fetch pages without executing JavaScript, so tags injected client-side by a single-page app will not be seen. They must be in the server-rendered HTML.

Debugging a preview that will not update

  1. Every platform caches scrapes aggressively, often for days. Changing the tag is not enough.
  2. Facebook and Instagram: the Sharing Debugger at developers.facebook.com/tools/debug, then "Scrape Again".
  3. LinkedIn: the Post Inspector at linkedin.com/post-inspector.
  4. X: the card validator has been retired; posting the link in a draft usually refreshes it.
  5. WhatsApp: no public tool. Appending a harmless query string such as ?v=2 forces a fresh scrape.
  6. Check the fetch actually succeeds — a Cloudflare bot rule or a firewall blocking facebookexternalhit will produce a bare link with no card, which looks identical to a missing tag.

Sensible fallbacks when a tag is missing

More questions people ask

What is the correct Open Graph image size?

1200 by 630 pixels, a 1.91:1 ratio, is the standard that works across Facebook, LinkedIn, WhatsApp, Slack and X. Keep the file under 5 MB, and under about 300 KB if WhatsApp previews matter.

Which Open Graph tags are required?

og:title, og:type, og:image and og:url. Everything else, including og:description, is optional — though a card without a description looks unfinished.

Why is my Open Graph image not showing?

The four usual causes are a relative rather than absolute image URL, tags injected by JavaScript that the crawler never runs, a platform cache holding an old scrape, and a bot rule at your CDN blocking the platform’s crawler. Check the last one with a request using the facebookexternalhit user agent.

Do I need Twitter card tags if I have Open Graph?

Not strictly — X falls back to Open Graph for title, description and image. You do need twitter:card set to summary_large_image if you want the wide card rather than the small square one.

Should Open Graph tags use name or property?

property. Open Graph is an RDFa vocabulary, so it is meta property="og:title". Twitter card tags use meta name="twitter:card". Mixing them up is why tags are often ignored without any error.

Everything on this page runs in your browser — nothing you type is uploaded or stored.

Answers, not just a number

Short, exact answers to the questions people ask alongside this tool — the number first, then the working.

For teams, not just visitors

Want this calculator on your own site?

We build the calculators on SnoopTool as embeddable widgets in your branding, wired to your own lead form — the same maths, your colours, your domain, your leads. Tell us which one and we will send back a working demo you can put in front of your team.

One reply from a person, within one business day. No newsletter, no sequence. See our privacy policy.