By Mian Ali Khalid · Published · How we build and test tools
How to use the meta tag generator
- Fill in the Page title and Description fields. Keep the title under 60 characters and the description under 160 characters for optimal search engine display.
- Add your Canonical URL so search engines know the preferred version of the page. Include an Image URL if you want rich previews on social platforms.
- Choose the Twitter card type and Robots directive. Use
noindexonly for pages that should stay out of search results. - Copy the generated HTML snippet from the output area and paste it inside the
<head>element of your HTML document.
What this meta tag generator produces
This meta tag generator outputs standard HTML elements that belong in the document head section. It creates a charset declaration, a viewport tag, a title element, a description meta tag, a canonical link, a robots directive, and Open Graph plus Twitter Card properties. Every field is optional except the title or description: if you leave a field blank, the corresponding tag is omitted entirely rather than emitted with an empty value.
The Open Graph tags use the property attribute (for example, og:title) while standard meta tags like description and robots use the name attribute. This distinction matters because social platforms parse Open Graph via the property attribute, whereas search engines read the name attribute.
Character limits and SEO checks
Search engines typically truncate titles after about 60 characters and descriptions after 155 to 160 characters. When you type into the form, the tool counts your characters and shows a list of checks below the output. A warning appears if your title exceeds 60 characters or your description exceeds 160 characters, or if the canonical or image URL is not absolute.
| Element | Recommended limit | Why it matters |
|---|---|---|
| Title | 60 characters | Longer titles are truncated in search results |
| Description | 160 characters | Search engines cut off longer descriptions |
| URL | No strict limit | Must be a valid absolute URL |
| Image | No strict limit | Social platforms prefer images at least 1200 by 630 pixels |
These limits are guidelines, not hard rules. Some languages and character sets render differently, but staying within these bounds gives the most consistent display across search engines and social networks.
Escaping special characters safely
HTML attribute values must escape certain characters to remain valid. This tool automatically converts double quotes to ", ampersands to & and angle brackets to < and > inside every value. For example, if your title is Say "Hello" & Goodbye, the output will read content="Say "Hello" & Goodbye".
Failing to escape these characters breaks the HTML parser and can cause the rest of your head section to be ignored. Always verify that user-supplied text goes through proper escaping before placing it in a meta tag. You can also run the final code through an HTML minifier to validate structure.
Robots directives and when to use them
The robots meta tag tells search engine crawlers how to treat the page. The default index, follow allows indexing and link following. Use noindex for duplicate content, thank-you pages, or staging environments that should never appear in search results. Use nofollow when you do not want crawlers to pass link equity through the hyperlinks on the page.
Combining both as noindex, nofollow is common for admin panels or private areas. Remember that the robots meta tag only works if the crawler actually loads the page. If you block the page in your robots.txt file, the crawler will never see the meta tag, so it may still index the URL based on external links alone.
Worked examples
| Example | Input | Result |
|---|---|---|
| Blog post with image | Page title: How to Bake Bread; Description: A step-by-step guide to baking sourdough bread at home with simple ingredients.; Canonical URL: https://example.com/bake-bread; Image URL: https://example.com/bread.jpg; Site name: Baking Blog; Twitter card type: summary_large_image; Robots directive: index follow; Locale: en_US | Title length: 17 characters (ok); Description length: 79 characters (ok); Canonical URL: Provided; Social image: Provided; Robots: index, follow |
| Minimal page | Page title: About Us; Description: Learn more about our company and team.; Twitter card type: summary; Robots directive: index follow | Title length: 8 characters (ok); Description length: 38 characters (ok); Canonical URL: Not provided; Social image: Not provided; Robots: index, follow |
| Noindex staging page | Page title: Staging Environment; Description: Internal testing page, do not index.; Canonical URL: https://staging.example.com/; Site name: Example Corp; Twitter card type: summary; Robots directive: noindex nofollow; Locale: en_US | Title length: 19 characters (ok); Description length: 36 characters (ok); Canonical URL: Provided; Social image: Not provided; Robots: noindex, nofollow |
FAQ
Where do I paste the generated seo meta tags?
Place the entire snippet inside the head element of your HTML document, ideally after the charset declaration and before any script or style tags.
Do I need both Open Graph and Twitter Card tags?
Yes, if you want consistent link previews across all platforms. Open Graph covers Facebook, LinkedIn, Slack and others, while Twitter uses its own card tags.
What happens if I leave a field empty?
The tool skips that tag entirely. Empty attributes are never emitted, keeping your HTML clean and avoiding invalid markup. The charset, viewport, robots, Open Graph type and Twitter card tags are always included.
Is my data sent to a server?
No. This html meta tags generator runs entirely in your browser. Nothing you type is uploaded or stored anywhere.
Why does the tool warn about title length?
Search engines typically display only the first 50 to 60 characters of a title. Longer titles get truncated with an ellipsis, which can hide important keywords.
Can I use relative URLs for the canonical or image fields?
You can type them, but Open Graph and Twitter specifications require absolute URLs. Always include the protocol and domain for reliable previews.