Open Graph defines common properties such as og:title, og:description, og:image and og:url. Twitter Cards add metadata under the twitter: namespace, including twitter:card, twitter:title, twitter:description and twitter:image. X can use Open Graph values as fallbacks for some fields, but the card type remains important.

What each format controls

  • Open Graph: broadly used by many social networks, chat apps and link unfurlers.
  • Twitter Card metadata: gives X-specific instructions, especially the card layout type.
  • Standard SEO metadata: title and description tags remain separate from both social formats.

A practical combined example

<meta property="og:title" content="A clear page title" />
<meta property="og:description" content="A concise summary." />
<meta property="og:image" content="https://example.com/share.jpg" />
<meta property="og:url" content="https://example.com/page" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="A clear page title" />
<meta name="twitter:description" content="A concise summary." />
<meta name="twitter:image" content="https://example.com/share.jpg" />

Avoid conflicting values

If the OG title says one thing and the Twitter title says something else, the result can differ by platform. That may be intentional, but it should be a deliberate editorial choice. Most sites should keep title, description and image consistent across both sets of tags.

How to test the result

Inspect the live HTML, confirm the correct twitter:card value, then review a simulated X card. For real platform behaviour, use available official inspection and cache-refresh tools. Do not rely on an unofficial or retired validator.

Try OpenGraph Preview

Check your Open Graph and Twitter metadata together, then preview the card layouts before publishing.

Open the free tool →