Open Graph is a set of meta tags, created by Facebook and now used by almost every platform, that tell social networks and messaging apps how to display a link. LinkedIn, X, Slack, WhatsApp, iMessage, Discord and Pinterest all read them.
The essential Open Graph tags
<meta property="og:title" content="Waterproof Trail Running Shoes">
<meta property="og:description" content="Grippy, waterproof and light. Free returns for 60 days.">
<meta property="og:image" content="https://example.com/img/og-trail-shoes.jpg">
<meta property="og:url" content="https://example.com/trail-shoes/">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Example Co">| Tag | What it sets |
|---|---|
og:title | The headline of the preview card |
og:description | One or two lines under the title |
og:image | The preview image |
og:url | The canonical address of the page |
og:type | website for most pages, article for posts |
og:site_name | Your brand name |
Image size and format
- 1200 × 630 pixels (a 1.91:1 ratio) works well across platforms.
- Keep important text and logos in the centre; some platforms crop to a square.
- Use JPG or PNG under about 5 MB (smaller is faster).
- Use a full absolute URL with
https://. - Add
og:image:width,og:image:heightandog:image:altso platforms can lay out the card before downloading the image and describe it to screen readers.