Open Graph generator
Build the og: tags that decide what your link looks like everywhere it is pasted.
The canonical URL. Shares of variants all consolidate onto this one.
1200x630 is the safe size. Must be absolute and publicly reachable.
Underscore, not a hyphen: en_GB, not en-GB.
Link preview
EXAMPLE.COM
Your title appears here
Open Graph tags
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_GB" />Before you ship this
- Error: Without og:title the platform falls back to the page title, or to the URL.
- Warning: A link with no image renders as a bare text row and collects a fraction of the clicks.
- Note: Platforms cache these tags aggressively. After changing them, re-scrape the URL in the relevant debugger or the old card keeps appearing.
How to use it
- Enter the title, description and canonical URL.
- Add an absolute og:image URL. 1200 × 630 is the size that survives every platform.
- Watch the preview as you type — the title clips where a feed would clip it.
- Paste the tags into the head, then re-scrape the URL in the platform debugger so the old card is replaced.
One set of tags, most of the internet
Open Graph started at Facebook and is now what LinkedIn, WhatsApp, Slack, Discord, Signal and X read when their own tags are absent. Getting these four tags right fixes link previews almost everywhere at once.
That makes it unusually high leverage for the effort: a few lines in the head change how every share of every page looks, for as long as the page exists.
The image is most of the card
A link with an image occupies several times the visual space of one without, and collects clicks accordingly. A missing og:image is the single most expensive omission on this page.
It must be an absolute URL and publicly reachable: scrapers do not have your session, do not resolve relative paths, and will not wait for JavaScript to insert it.
Platforms cache harder than you expect
Once a URL has been scraped, the card is cached for days regardless of what you change. Every platform has a debugger that forces a refresh, and using it is part of shipping the tags rather than an afterthought.
This matters most at launch: the first share of a URL fixes the card that everyone else sees, so scrape it deliberately before you publicise it.
Open Graph generator FAQ
What size should an og:image be?
1200 × 630 pixels, a 1.91:1 ratio, under about 5MB. Smaller images get upscaled and look soft; square images get cropped unpredictably across platforms.
Why is my link preview not updating?
Because platforms cache scraped tags for days. Use the Facebook Sharing Debugger or LinkedIn Post Inspector to force a re-scrape; nothing on your side will clear it.
Do I need Open Graph tags if I have meta tags?
Yes. Social platforms do not read your meta description or title tag reliably, and without og: tags they fall back to guessing from page content, which produces the worst version of your link.
Do I need separate Twitter card tags?
X falls back to Open Graph for the title, description and image, so a complete og: set usually works. Adding twitter:card set to summary_large_image is the one tag worth including, because it chooses the wide layout rather than the small thumbnail.
Should og:url be the canonical URL?
Yes. Share counts and engagement are tracked against that URL, so a page reachable at several addresses should name one in og:url or the shares scatter across variants. It should match your canonical tag exactly.
Does every page need its own image?
Every page that will be shared, yes. A single site-wide image makes every link look identical, which loses the one advantage a card has over a plain URL. Template it from the page title if producing one per page by hand is unrealistic.
How small does the image get?
Small enough that fine detail disappears. Design for legibility at roughly a third of the size: a few large words, strong contrast, nothing important within about 60 pixels of the edges where different platforms crop differently.
Why does the preview look wrong in WhatsApp but right on Facebook?
Messaging apps have their own, tighter limits. WhatsApp in particular wants a small file — keep it well under a megabyte — and falls back to no image rather than resizing a large one. If the card works everywhere except there, file size is almost always the reason.
Which other og tags are worth setting?
og:type, usually website or article, and og:site_name, which platforms display alongside the title. For articles, og:article:published_time is read by some platforms. Beyond those, the returns fall off quickly.
How do I force the cached preview to refresh?
Use the platform debugger — Facebook Sharing Debugger, LinkedIn Post Inspector — and request a re-scrape. Nothing you do on your own server will clear their cache, and the old card can persist for days. Adding a query string to the URL is a workaround that splits your share counts.