About the Open Graph Generator
Open Graph tags tell Facebook, LinkedIn, WhatsApp, Slack and many other apps what title, description and image to show when someone shares your link. Without them, the app guesses, often picking the wrong image.
This generator creates the og: tags for type, title, description, URL, image, site name and locale.
How to use the Open Graph Generator
- Enter the title and description you want shown in the share card.
- Add the page URL and the full URL of the share image.
- Choose the content type (website, article, product, video or profile).
- Copy the tags into the page’s
<head>.
Example
Article share card
<meta property="og:type" content="article">
<meta property="og:title" content="How to Brew Better Coffee at Home">
<meta property="og:image" content="https://example.com/images/coffee-1200x630.jpg">
Frequently asked questions
What size should the og:image be?
1200 × 630 pixels (a 1.91:1 ratio) works well on most platforms. Use an absolute URL starting with https://.
My old image still shows after I changed it. Why?
Platforms cache previews. Use the platform’s sharing debugger (for example Facebook’s Sharing Debugger) to fetch the page again.
Do I need Twitter tags as well?
X (Twitter) falls back to Open Graph tags, but adding twitter:card lets you choose the large image layout. See the Twitter Card Generator.