guide

How to Write Meta Tags for SEO (2026)

By Rui Barreira · Last updated: 18 June 2026

Meta tags are short HTML snippets that live inside your page's <head> element and tell search engines what your page is about. They don't affect your visible content, but they directly influence how your page appears in search results — the title people see, the description under it, and whether Google decides to index the page at all. Getting these right is one of the highest-leverage, lowest-effort SEO improvements you can make. Use the Meta Tag Generator to produce correct, complete markup in seconds.

The tags that matter most

Most meta tag guides list dozens of options. In practice, four tags do nearly all the work. The <title> element (technically not a meta tag, but treated as one by SEO tools) is the blue link text in search results and the most important on-page SEO signal. The meta description is the grey snippet below it — not a direct ranking factor, but it drives click-through rate, which does influence rankings indirectly. The robots tag tells crawlers whether to index the page and follow its links. The canonical tag prevents duplicate-content penalties when the same content appears at multiple URLs.

TagSEO roleRecommended value
<title>Primary ranking signal, SERP headlineTarget keyword near the front, 50–60 characters
meta descriptionSERP snippet, click-through driverOne clear value proposition, 120–155 characters
meta robotsIndex / crawl controlindex, follow for public pages; noindex for drafts
link rel="canonical"Duplicate content consolidationAbsolute URL of the preferred version of the page
meta viewportMobile usability (Core Web Vitals)width=device-width, initial-scale=1

Writing titles and descriptions that rank and convert

A strong title puts the primary keyword as close to the beginning as possible, stays under 60 characters so it doesn't get truncated in search results, and reads naturally — not as a keyword list. A formula that works for most pages is: Primary Keyword — Supporting Phrase | Brand Name. For example: Meta Tag Generator — Free SEO Tool | Brevio.

For descriptions, lead with the specific benefit the user gets, include the primary keyword once naturally, and end with a soft call to action. Google rewrites descriptions it considers a poor match for a query, so aim for accuracy over cleverness — a description that precisely matches search intent is less likely to be overridden. Keep it between 120 and 155 characters; anything longer is cut with an ellipsis on most screen sizes.

Common mistakes that cost rankings

Duplicate titles and descriptions across pages are the most common problem — every page should have a unique title that reflects its specific content. Missing canonical tags on paginated content or URL variants (with and without trailing slashes, with and without query strings) causes Google to split ranking signals across multiple versions of the same page. Setting noindex on pages that should be public — a staging directive left in production, for example — can silently remove pages from search results for weeks. Overly long titles, keyword stuffing, and putting the brand name first instead of last all reduce click-through rate without improving rankings.

Use the Meta Tag Generator to build all essential meta tags with live character counts and a ready-to-paste HTML snippet.

Frequently Asked Questions

Is this tool free?
Yes — completely free, no signup required. All processing happens in your browser.
Does the tool work offline?
Once loaded, most features work without an internet connection since everything runs client-side.
More free toolsSee all 469
Merge PDFsCompress ImageJSON FormatterPassword GeneratorVAT CalculatorQR Code Generator
How to Write Meta Tags for SEO (2026) | brevio