Meta tag generator
Build the head block a page needs, with the tags that matter and none of the ones that do not.
Meta tags
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- on the html element: lang="en" -->Before you ship this
- Error: A page without a title tag has nothing to rank with.
- Note: With no description Google writes its own from the page, which is often fine and never under your control.
How to use it
- Enter the page title and description.
- Add the canonical URL, absolute and including https://.
- Leave robots on index, follow unless you have a reason — the tag is only emitted when it differs from the default.
- Copy the block into the head of the page, above anything that loads content.
Four tags do the work
Title, description, canonical and robots are the ones that change what search engines do. Charset and viewport change how the page renders, which is why they are emitted first and unconditionally here.
Everything else that gets listed in meta tag guides — revisit-after, distribution, rating, copyright — has no effect on any engine anyone uses.
The robots tag is the dangerous one
A noindex left behind after a staging launch removes a site from search entirely, and nothing on the page looks wrong. This generator only writes the tag when it differs from the default, so a page with no robots tag is unambiguous.
If you do set noindex, know what follow does alongside it: noindex, follow still passes link equity through the page, which is usually what you want for pagination and filters.
Canonical is a hint, not an instruction
Google treats the canonical as one signal among several, alongside internal links, redirects and the sitemap. A canonical that contradicts those is routinely ignored.
Point it at the absolute, preferred, indexable version, make the page self-canonical when it is that version, and keep every other signal pointing the same way.
Meta tag generator FAQ
Which meta tags actually matter for SEO?
Title, description, canonical and robots. Charset and viewport matter for rendering. Everything else, including meta keywords, is either ignored or handled better elsewhere.
Does a canonical tag have to be an absolute URL?
Yes. A relative canonical is a common and silent failure: the tag is parsed, resolved against the wrong base in some crawlers, and the consolidation you wanted never happens.
Should I add meta keywords?
Google has ignored them since 2009 and competitors can read them straight out of your source. Some internal site-search tools still use them, which is the only remaining reason.
What is the difference between noindex and blocking in robots.txt?
A noindex tag tells a crawler not to index a page it has read. A robots.txt disallow tells it not to read the page at all — which means it never sees the noindex. Blocking a page you want removed is the classic mistake: it stays in the index, often with no description, indefinitely.
Do I need Open Graph tags as well?
If the page is ever shared, yes. The meta description governs search results; og:title, og:description and og:image govern what a link looks like on social platforms and in messaging apps. Without them the platform guesses, usually badly.
Is the charset tag still necessary?
Yes, and it should be the first thing in the head. A missing or late charset declaration means the browser guesses the encoding and your curly quotes and accented characters arrive as mojibake. UTF-8, declared within the first 1024 bytes.
Does the viewport tag affect search?
Indirectly but seriously. Without it a page renders at desktop width on a phone, which fails mobile usability and makes the page unusable for most of your visitors. Google indexes the mobile version of your site, so it sees that page the way a phone does.
Should I add author, publisher or revisit-after tags?
No. Google ignores all three, and has for years. Authorship and publisher information belong in structured data, where they are actually read, and crawl frequency is decided by the crawler regardless of what you request.
Can I use a meta refresh to redirect?
You can, and you should not. A server-side 301 is faster, passes signals cleanly and does not strand the visitor on a blank page for a few seconds. Meta refresh is a fallback for environments where you cannot set a header, and little else.
Why is my canonical being ignored?
Because a canonical is a hint, not an instruction. Google ignores one that contradicts other signals — internal links, sitemaps, hreflang or a page that is clearly different from its stated canonical. When they disagree it picks its own, and the fix is to make the other signals agree rather than to repeat the tag.