How to Generate Meta Tags for a Webpage
Enter the page details you want to use, choose the viewport and robots text, and generate the HTML markup. Review the separate lines and conditional tags before placing the block in a page.
What the meta tag generator does
Meta tags are small pieces of HTML markup that describe page information to browsers and search-related systems. This generator builds the markup from text you enter, so it can help when you want a clear starting point for a page title, description, keywords, author, viewport setting, and robots instruction.
The tool accepts optional values rather than requiring every metadata field. It also provides standard viewport, robots, and character-encoding markup when the optional page details are left blank. That makes it useful for creating a basic metadata block before you add it to a page and review it in the context of your site.
Steps to generate meta tags
-
Enter the page title, if you have one. Add the title text you want represented in the generated markup. A non-empty title creates both a title element and a title metadata element.
-
Add the other optional page details. Enter a description, keywords, and author when those values are relevant to the page. You can leave a field blank. The generator adds markup for each of these fields only when its value is non-empty.
-
Review the viewport and robots settings. You can supply your own text for these settings. If you do not change them, the defaults are
width=device-width, initial-scale=1.0for the viewport andindex, followfor robots. -
Generate the markup. Submit the supplied values through the tool’s generate control. The result is HTML meta-tag markup based on the values you entered.
-
Inspect the returned block before using it. Confirm that the text matches the intended page and that the tags you expect are present. The generated tags appear on separate lines, which makes the block easier to read. Supplied text is escaped before it is inserted into the markup, but you should still review the result for content and placement.
-
Place the reviewed markup in the appropriate page head. Use the generated block as a construction aid, then check it against your page’s requirements. The generator creates markup from supplied text; it does not inspect an existing webpage or determine whether your metadata is suitable for a particular page.
How to read the result
The output is a set of HTML tags, with each generated tag placed on its own line. Viewport, robots, and character-encoding markup remain part of the result even when the optional title, description, keywords, and author fields are empty. When a field contains text, its corresponding markup is included.
A title deserves special attention because one entered title produces two related pieces: a title element and a title metadata element. If you enter a description, keywords, or author value, look for the corresponding metadata line. If you leave one of those fields blank, its optional metadata line should not be added.
The viewport and robots lines use their configured text, or their stated defaults when you make no change. These values describe the requested markup; they do not by themselves establish that a page is correctly configured, will rank in a particular way, or meets every requirement for a website. Review the generated block alongside your page template and publishing setup.
Worked example
A site editor is preparing the head markup for a spring trail guide and wants to include a title and keywords while leaving author information empty.
Enter the title “Spring trail guide,” leave description and author blank, enter “hiking, trails” as keywords, keep the default viewport and robots text, and generate the markup.
The result contains separate lines for standard viewport, robots, and character-encoding markup. Because the title is non-empty, it also contains a title element and a title metadata element; the blank author field has no corresponding optional line.
Limitations
- The tool constructs markup from supplied text; it does not inspect an existing webpage or judge whether the metadata is appropriate for a specific page.
- Generated markup is not a guarantee of search performance, metadata correctness, or compliance with every site requirement.
Common errors
- If an expected optional line is missing, the related field may have been left empty. Enter a non-empty value for that field and generate the markup again; blank optional fields are not added.
FAQ
What happens if I leave the page metadata fields blank?
Yes, if you leave the optional page fields blank, the result still includes viewport, robots, and character-encoding markup. Optional metadata lines are added only for fields containing text.
Does a title create more than one tag?
A non-empty title produces both a title element and a title metadata element. Check the generated block for both pieces before using it.
Does the generator verify that my meta tags are correct?
The tool constructs markup from the values you provide. It does not assess whether the resulting metadata is suitable for a particular page, so review the content and placement yourself.