Tools / Meta Tags & Open Graph Generator

Meta Tags & Open Graph Generator.

Generate title, description, canonical, Open Graph and X (Twitter) card tags with length checks.

Runs in your browser

1200×630 px works for Facebook, LinkedIn, Slack and X.

Ctrl/⌘ + Enter to run · Ctrl/⌘ + Shift + C to copy the result

Result
Tags for <head>
Checks

About Meta Tags & Open Graph Generator

Meta Tags & Open Graph Generator produces the block of tags that controls how a page appears in search results and in link previews on Facebook, LinkedIn, Slack, Discord, Telegram and X. Fill in the title, description, canonical URL and share image, and you get the title element, meta description, canonical link, optional theme-color and robots tags, the Open Graph properties (og:type, og:title, og:description, og:url, og:site_name, og:locale, og:image and its alt text) and the matching twitter: card tags, all correctly HTML-escaped so an ampersand or quote in your title cannot break the markup. A checks table flags titles longer than about 60 characters and descriptions outside 50–160 characters, which search engines tend to truncate, and reminds you when the share image or canonical URL is missing. Typical mistakes: relative image paths (Open Graph requires an absolute URL, ideally https), images smaller than 1200×630 that crop badly, the same title and description on every page, forgetting og:url so shares of tracking-parameter variants are counted separately, and leaving a noindex tag from staging on a production page. Platforms cache previews, so after a change use the Open Graph debugger to fetch the page again and see what scrapers actually read.

How to Use

  1. Enter the title, description, canonical URL and share image URL.
  2. Adjust og:type, locale, X card and handle; review the checks table.
  3. Paste the generated tags into the head of your page.

Frequently Asked Questions

Do I need both Open Graph and twitter: tags?

X falls back to Open Graph for title, description and image, but it needs twitter:card to choose the layout. Including both is the safest way to get consistent previews.

What size should the share image be?

1200×630 pixels (1.91:1) in PNG or JPEG, under 5 MB, with important content away from the edges. Use an absolute https URL.

Why does the old preview still show after I changed the tags?

Social platforms cache previews. Re-scrape the URL with the platform's debugger or the Open Graph debugger on this site.

Is my data sent anywhere?

No. The tags are generated in your browser.

Related Tools