What Open Graph tags do
When someone pastes your link into a social app, a chat or a messaging app, the app fetches the page and looks for Open Graph tags: og:title, og:description, og:image and og:url. They decide the title, text and picture on the preview card. The protocol started at Facebook and is now read by most apps that build link previews, including LinkedIn, Slack, Discord and iMessage. X reads them too, plus its own twitter: tags.
The tags that matter
- og:title: the bold line. It can differ from your title tag; write it for someone scrolling a feed, not for a search query.
- og:description: one or two sentences. Many apps show only the first line, or none.
- og:image: the most important one. A full https:// URL to a public image.
- og:url: the canonical URL, so shares of different versions of the link count as one.
- twitter:card:
summary_large_imagefor a wide image card,summaryfor a small square thumbnail.
Note the attribute names: Open Graph tags use property="og:…", and X card tags use name="twitter:…". The generator writes both correctly.
Image size guidance
Use 1200×630 pixels, a ratio of about 1.91:1. That’s Facebook’s recommended size, and it works on LinkedIn, Slack and X’s large card (2:1) with little cropping. Below 600×315, Facebook still shows the image, but much smaller. X accepts JPG, PNG, WEBP and GIF under 5 MB for cards.
- Keep text and logos away from the edges. Apps crop slightly differently, and some round the corners.
- Make any text large. On phones the whole card is only a few hundred pixels wide.
- Set
og:image:widthandog:image:heightso apps can lay out the card before the image loads. - Add
og:image:altfor people using screen readers.
The preview above is generic: it shows the parts every app uses, not any one app’s exact design. Paste an image URL and we’ll load it in your browser and check its real dimensions against the tags.
After you ship
Apps cache previews. After changing tags, re-scrape the URL in the platform’s debugging tool, then share it again. To see which og: tags a live page is serving right now, run it through the meta tag checker.