Meta Tag Generator

Generate HTML meta tags for title, description, keywords, robots, and viewport. Values are safely escaped.

Independently verified for accuracy

Calculator by Toolsloft ↗

Generate the meta tags a page needs in its <head>: title, description, keywords, author, robots, charset, and viewport. Fill in the fields that apply and copy the block into your HTML. Values are escaped so special characters do not break the markup.

How this is calculated

Each filled field maps to its standard tag. Attribute values are HTML-escaped (& < > and double quotes), and title text escapes & < >. Blank fields are skipped, so you only get the tags you set, in a stable head-friendly order.

How to use

  1. Enter your page title and description.
  2. Add optional keywords, author, and robots directives.
  3. Keep charset and viewport on for modern pages, then copy the tags.

Examples

  • Basic: title + description produces <title> and <meta name="description">
  • Escaping: Tom & Jerry becomes Tom &amp; Jerry in the output

FAQ

Why are & and < changed in the output?
They are escaped to keep the HTML valid. An unescaped & or quote inside an attribute can break parsing, so the tool converts them to entities.
Do I still need a keywords tag?
Most search engines ignore the keywords meta tag for ranking. It is optional here and only added if you fill it in.
What does the robots field do?
It sets the robots meta tag, for example index, follow or noindex, nofollow, telling crawlers how to treat the page.

Embed this calculator

Add this free calculator to your own site. Copy the code and paste it where you want it to appear.