Open Graph Tag Generator

Creates the Open Graph and X card tags that control how a page looks when its link is shared on social sites and in chat apps. Fill in the title, description, address and image, then copy the finished tags into your page.

Options

How to use the Open Graph Tag Generator

  1. Fill in the title, description, page address and image address.
  2. The Open Graph and X (Twitter) card tags appear as you type. Copy them into the <head> of your page.

Rules applied

  • All values are HTML-escaped. Page and image addresses must be full http:// or https:// addresses.
  • Image description tags are added only when there is an image.

Limitations

  • Nothing is fetched, so the image size and whether the page is reachable are not checked. Social sites cache previews; use their own tools to refresh them.

Worked examples

Article share card

Result

<meta property="og:type" content="article">
<meta property="og:title" content="How to Bake Sourdough">
<meta property="og:description" content="A beginner-friendly guide with photos.">
<meta property="og:url" content="https://example.com/sourdough/">
<meta property="og:site_name" content="Example Kitchen">
<meta property="og:image" content="https://example.com/img/sourdough.jpg">
<meta property="og:image:alt" content="A loaf of sourdough bread">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@examplekitchen">
<meta name="twitter:title" content="How to Bake Sourdough">
<meta name="twitter:description" content="A beginner-friendly guide with photos.">
<meta name="twitter:image" content="https://example.com/img/sourdough.jpg">
<meta name="twitter:image:alt" content="A loaf of sourdough bread">
Simple page without an image

Result

<meta property="og:type" content="website">
<meta property="og:title" content="Contact us">
<meta property="og:description" content="Opening hours and how to reach our team.">
<meta property="og:url" content="https://example.com/contact/">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Contact us">
<meta name="twitter:description" content="Opening hours and how to reach our team.">

Practical uses

  • Improving how a link looks when shared

    A blogger wants shared links to show a card with a picture. They fill in a title, description, page address and image address. The Open Graph and X card tags appear, ready to copy into the head of the page.

  • Setting up a small business page

    A shop owner adds the site name and a short description to the home page. The tool generates the tags as they type. Shared links then show clear information instead of a bare address.

  • Preparing tags for an article template

    A developer is building an article template and needs the sharing tags for it. They generate them with an image address, which also adds the image description tags. The tags are then copied into the page template.

Privacy: this tool runs entirely in your browser. Your text is not uploaded, logged or saved, and it is never sent to analytics. Maximum input: 1 MiB.