Skip to content

Meta Tag Generator

Write a page title, description, canonical URL, robots directives and Open Graph / Twitter card tags, and get a ready-to-paste HTML head snippet. A live Google-style result preview and a social card preview show roughly how the page will appear, with character counters for the recommended ranges.

Runs in your browserFreeNo sign-up

Processed on your device. Files and text stay in your browser and are not uploaded to our servers. How privacy works

How to use the meta tag generator

  1. Type the page title and meta description; the counters turn green inside the recommended range.
  2. Add the canonical URL, choose index/follow settings, and set the language.
  3. Paste an Open Graph image URL (1200×630 px works everywhere) and pick the Twitter card type.
  4. Check both previews, then copy or download the snippet and paste it inside your page's <head>.

Features

  • Google-style search result preview with pixel-based title truncation
  • Social card preview using your og:image
  • Character counters with the recommended title and description ranges
  • Robots index/noindex and follow/nofollow toggles
  • Open Graph type, image, site name and locale, plus Twitter card tags
  • Attribute values are HTML-escaped so quotes and ampersands don't break the markup

Recommended lengths and why they are approximate

Google does not cut titles at a fixed number of characters. On desktop it shows roughly 580 pixels of text, which is around 50–60 characters in a typical font; wide letters like W and M use up the space faster than i or l. Descriptions are usually cut at about 155–160 characters on desktop and fewer on mobile. Google also rewrites titles and descriptions when it decides another snippet fits the query better, so treat the preview as guidance, not a guarantee.

What each tag does

A minimal, useful head contains these tags:

  • <title>: the headline in search results and browser tabs. Put the main topic first and the brand last.
  • meta description: not a ranking factor, but it is often used as the snippet and affects click-through rate.
  • link rel=canonical: tells search engines which URL is the original when the same content is reachable at several addresses (tracking parameters, http/https, trailing slashes).
  • meta robots: only needed to opt out. index, follow is the default, so the tool omits the tag unless you change it.
  • meta viewport: required for the page to render properly on phones; without it, mobile-friendliness checks fail.
  • Open Graph and twitter:* tags control the title, description and image shown when a link is shared on Facebook, LinkedIn, WhatsApp, Slack and X.

Frequently asked questions

Why is the preview only an approximation?

Search engines measure titles in pixels, change limits by device, and can rewrite both the title and description. The preview uses average character widths for the default font to estimate the cut-off.

Do I need both Open Graph and Twitter tags?

X reads Open Graph tags as a fallback, but it needs twitter:card to choose the large-image layout. Including both is the safe choice; the tool emits them together.

What size should the Open Graph image be?

1200×630 pixels (1.91:1) is the widely supported size. Keep important content away from the edges because some apps crop to a square.

Why isn't there a meta keywords tag?

Google has ignored meta keywords since 2009 and other major engines followed. Adding it only reveals your targeting to competitors.

Other tools people use alongside Meta Tag Generator.

You might also like

Something useful from another corner of VoltKit.