Open Graph and Twitter Card Generator

Generate Open Graph and Twitter Card meta tags for rich link previews.

Generate Open Graph and Twitter Card meta tags so your links show a rich preview on Facebook, LinkedIn, Slack, X and iMessage. Fill in a few fields and copy ready-to-paste HTML — everything runs in your browser. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

What are Open Graph tags?

Open Graph (og:) meta tags tell social platforms how to display a shared link — the title, description and preview image shown in the link card. They were created by Facebook and are now read by LinkedIn, Slack, WhatsApp, iMessage and many others.

Generate Open Graph and Twitter Card tags

When someone shares your link, platforms look for Open Graph and Twitter Card meta tags to build the preview card — the title, description and image. Miss them and your link shows up bare. This generator produces both sets of tags from a few fields.

What it outputs

<meta property="og:title" content="…" />
<meta property="og:description" content="…" />
<meta property="og:type" content="website" />
<meta property="og:url" content="…" />
<meta property="og:image" content="…" />
<meta property="og:site_name" content="…" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="…" />
<meta name="twitter:description" content="…" />
<meta name="twitter:image" content="…" />

Special characters in your text are safely escaped, and empty optional fields are omitted so the output stays clean.

Field guide

  • Title / description — what shows in the card; keep the title short and the description a sentence or two.
  • Page URL — the canonical URL of the page being shared.
  • Image URL — an absolute URL to a preview image, ideally 1200×630px for a large card.
  • og:typewebsite for most pages, article for blog posts, product for shop items.
  • Twitter cardsummary_large_image for a big image, summary for a small thumbnail.

Where to put them

Paste the generated tags inside the <head> of your HTML, then test with a platform’s link-preview debugger to confirm the card renders.

Everything is generated in your browser — nothing is uploaded.