HTML Meta Tag Generator — Title, Description, Robots and Canonical with Real Pixel Widths
Build escaped <head> tags — title, description, robots, canonical, charset, viewport — with real pixel widths and a live desktop and mobile Google preview.
Search engine directives (robots)
Desktop preview
Mobile preview
Measured with Canvas measureText in Arial (or a font with identical metrics on your device): desktop title 600 px on one line, mobile title 2 lines × 328 px, description 920 px (desktop) and 680 px (mobile). Google truncates dynamically and sometimes rewrites titles, so treat these as safe limits, not promises.
Every value is escaped: quotes, <, > and & in the title or description cannot break the HTML.
When to use the HTML Meta Tag & Title Length Generator
Measured in pixels, not guessed
Titles and descriptions are measured with Canvas measureText in Arial, the font of Google's results. A W is far wider than an i, so counting characters alone often misleads.
Desktop and mobile preview
See exactly where the title and description are cut on desktop and on phones, with the URL breadcrumb Google shows.
Full robots control
Set index or noindex, follow or nofollow, nosnippet, max-image-preview and max-snippet. Conflicting combinations, such as noindex together with a canonical, are flagged.
Safe to paste
Quotes, <, > and & in the title or description are escaped, so no text can break your page's HTML.
Frequently asked questions
How long should a title be?
About 600 pixels on desktop, roughly 50–60 characters of normal text. Put the main keyword first so it stays visible if the title is cut.
Do meta keywords still matter?
No. Google has ignored meta keywords for years, so this tool does not create one.
Does the meta description affect rankings?
Not directly. A clear description makes people more likely to click, but Google may pick another text snippet from the page when it fits the search better.
Does every page need a canonical?
It is recommended. A self-referencing canonical helps Google pick one URL when tracking parameters or address variants exist.
Similar tools
- Canonical Tag Checker & Link AuditorCheck a page's canonical the way Google reads it: in <head> or pushed into <body>, self or another URL, duplicates, the Link header, og:url and noindex conflicts — from a live page or pasted HTML.
- hreflang Tag & ISO Region GeneratorBuild hreflang annotations with ISO 639-1 / 3166-1 checks (en-UK → en-GB), x-default and self-reference checks, as HTML <link>, an XML sitemap or an HTTP Link header.
- JSON-LD Schema Markup GeneratorCreate Schema.org JSON-LD for Article, Product, FAQPage, LocalBusiness, BreadcrumbList and Organization with required-field checks, as a <script> tag or .json.
- Long-Tail SEO Keyword Variation GeneratorLong-tail keyword ideas from seed keywords: questions, prepositions, buying intent, comparisons, year and A–Z prompts, in Indonesian or English, exported as .txt or .csv.