Meta Tag Generator

Generates the meta tags a page needs — title, description, canonical, viewport and robots — ready to paste into your head. A small block of markup that decides how your page appears in search results.

Live demo · real result from this tool

Press Generate to create a result.

Processed on your device — nothing is uploaded.

How to use Meta Tag Generator

  1. Enter your page title, description and canonical URL.
  2. Set the robots directive if the page should not be indexed.
  3. Copy the block into your head, above any scripts.
  4. Check the rendered source of the live page, not just the template.
  5. Titles truncate around 55–60 characters and descriptions around 150–160 — both by pixel width, not character count.
  6. Canonical URLs must be absolute and must resolve with a 200 status.
  7. The keywords meta tag does nothing; leave it out.

Title and description are advertising copy, not labels

The title is the clickable line in a search result and the single strongest on-page signal you control. Google truncates by pixel width at roughly 600px, which is about 55–60 characters, so the distinguishing words go first and the brand goes last. The description is not a ranking factor and it is the copy that persuades someone to click — 150–160 characters, written as a promise the page keeps. Google rewrites descriptions perhaps 70% of the time, more often when yours does not match the query, which is an argument for writing one that does rather than for skipping it.

The canonical tag prevents you competing with yourself

The same content reachable at several URLs — with and without a trailing slash, with tracking parameters, with and without www — splits ranking signals between them. A canonical tag names the version you want indexed and consolidates the rest into it. Use an absolute URL, make every page self-canonical by default, and make sure the canonical points at a page that actually returns 200: a canonical to a redirect or a 404 is ignored, and the page is treated as having none.

The robots tag, and its difference from robots.txt

<meta name="robots" content="noindex"> removes a page from search results, and works only if the crawler can reach the page to read it. That is why disallowing a page in robots.txt while also trying to noindex it fails — the crawler never sees the tag. Other useful values: nofollow for links you do not endorse, noarchive to suppress the cached copy, and max-snippet to control how much text can be shown.

The meta tags that no longer do anything

The keywords meta tag has been ignored by Google since 2009 and by Bing for almost as long; filling it in signals nothing except that the page was built from an old checklist. Meta author, revisit-after and distribution are equally inert for search. The tags that genuinely matter are few: title, description, canonical, viewport, robots, and the Open Graph set for social sharing.

Frequently asked questions

What meta tags should every page have?
Essential tags: title, description, viewport, charset, and Open Graph tags for social sharing. These improve SEO, accessibility, and social media previews.
What's the ideal meta description length?
150-160 characters is ideal for Google search results. Longer descriptions may be truncated. Include your primary keyword and a clear value proposition.
Do I need both Open Graph and Twitter Cards?
Twitter falls back to Open Graph if Twitter Card tags are missing, but providing both ensures optimal previews on all social platforms.
How long should a meta description be?
150–160 characters, and write it so the meaning survives truncation at 120. Google rewrites descriptions most of the time, and it rewrites yours less often when it already answers the query well.
Does the meta keywords tag still matter?
No. Google has ignored it since 2009 and every other major engine followed. It carries no benefit and marks a page as built from outdated advice.
What is a canonical tag for?
It names the preferred URL when the same content is reachable at several, consolidating ranking signals rather than splitting them. Every page should carry one pointing at itself, using an absolute URL that returns 200.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close