How to use the Meta Tag Generator
- 1Enter your page title and meta description. Watch the character and pixel counters.
- 2Add the canonical URL and choose robots settings (index or noindex, follow or nofollow).
- 3Keep the default charset and viewport unless you have a reason to change them.
- 4Copy the generated HTML and paste it inside the <head> of your page.
What is a meta tag generator?
A meta tag generator is a tool that writes the HTML tags in a page's <head> that tell browsers and search engines what the page is about. This meta tag generator creates the title tag, meta description, robots tag, canonical link, charset and viewport tags from a simple form, and shows live character and pixel counters so you can see when text is likely to be cut off in search results.
You copy the finished HTML and paste it into your page, theme settings or CMS template.
Which meta tags actually matter for SEO?
Not every meta tag still does something. Here is what each tag in this generator does today, based on Google Search Central's list of supported meta tags:
| Tag | What it does | Used by Google? |
|---|---|---|
<title> | The page name shown in browser tabs and often as the blue link in results | Yes, as a strong hint |
meta name="description" | A summary that may be shown as the snippet | Yes, sometimes shown; not a ranking factor |
meta name="robots" | Asks crawlers not to index the page or follow its links | Yes |
link rel="canonical" | Names the preferred URL when content is duplicated | Yes, as a strong hint |
meta charset | Tells the browser the text encoding (use UTF-8) | Browser only |
meta name="viewport" | Makes the page fit phone screens | Indirectly, through mobile usability |
meta name="keywords" | Lists keywords | No, ignored |
That is why this tool has no keywords field. Adding it does no harm, but it does no good either.
How long should a title and description be?
Google does not cut titles at a fixed number of characters. It cuts them when they run out of horizontal space. On desktop that is roughly 580 to 600 pixels of text in the result font. Because letters have different widths, 60 characters of "iiii" fits easily, while 50 characters of "WWWW" does not.
This generator measures your text with your browser's canvas in a 20px Arial font, a close match for Google's desktop result title, and shows a pixel bar alongside the character count. Treat both numbers as guides, not hard limits. For an exact visual check, paste the same text into the SERP Snippet Preview.
For descriptions, around 120 to 155 characters usually shows in full on desktop. Google may still write its own snippet from your page text when it thinks that matches the search better.
Worked example
Say you run a bakery in Lahore and want to tag your order page. You enter:
- Title:
Order Custom Cakes in Lahore – Same-Day Delivery | Sweet Crumb - Description:
Order fresh custom cakes in Lahore with same-day delivery. Choose a design, flavour and size online and pay on delivery. - Canonical:
https://sweetcrumb.pk/order/ - Robots: index and follow both ticked
The title is 63 characters and about 590 pixels wide, so it sits right at the edge. Shortening "Same-Day Delivery" to "Same-Day" brings it safely under. The generator outputs:
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Order Custom Cakes in Lahore – Same-Day | Sweet Crumb</title>
<meta name="description" content="Order fresh custom cakes in Lahore with same-day delivery. Choose a design, flavour and size online and pay on delivery.">
<link rel="canonical" href="https://sweetcrumb.pk/order/">
No robots tag is written, because "index, follow" is already the default. Adding it would only add bytes.
Tips for writing better meta tags
- Lead with the main topic. Put the words people search for near the start of the title, then your brand at the end.
- Make every title unique. Two pages with the same title compete with each other and confuse readers.
- Write the description as an answer. Say what the page gives the reader and why they should click. A clear, specific promise works better than a list of keywords.
- Use absolute canonical URLs. Write
https://example.com/page/, not/page/, and match your real URL format, including the trailing slash. - Add social tags next. Titles in Facebook, WhatsApp and LinkedIn previews come from Open Graph tags, which you can make with the Open Graph Generator.
- Keep slugs clean. A readable URL helps the snippet too. Use the Slug Generator to turn your title into one.
Common mistakes
- Blocking a page in robots.txt and adding noindex. If robots.txt stops crawling, Google never sees the noindex tag. Check your rules with the Robots.txt Generator.
- Copying the same description on every page. Google then usually ignores it and writes its own.
- Canonical pointing to the wrong page. A canonical to the homepage on every page can stop your inner pages from being indexed.
- Stuffing the title. "Cakes, Cake Lahore, Best Cakes, Cheap Cakes" looks like spam to readers, and Google often rewrites such titles.
Limitations
The generator writes correct HTML, but it cannot see your page. It cannot tell whether your title matches your content, whether another page already uses the same title, or whether your server sends a conflicting X-Robots-Tag header. Pixel widths are estimates in Arial; Google's fonts and layout change by device and over time. If you need structured data as well, use the Schema Markup Generator.
Frequently asked questions
How long should a title tag be?
Google does not publish a fixed limit. It truncates titles by pixel width, roughly 580 to 600 pixels on desktop, which is usually about 50 to 60 characters. Put the most important words first.
How long should a meta description be?
Google shortens snippets based on the device width. Around 120 to 155 characters usually displays in full on desktop. Google may also write its own snippet from your page text.
Do meta keywords still matter?
No. Google has said it does not use the meta keywords tag for ranking, so this generator does not include it.
What does noindex do?
A robots meta tag with noindex asks search engines not to show the page in results. The page must not be blocked in robots.txt, or crawlers will never see the tag.
Is a canonical tag required?
It is not required, but it helps when the same content is reachable at several URLs, such as with tracking parameters. It tells search engines which URL you prefer.
Last updated: . Written and tested by Abdul Moid Khan, ATechCraft. Read how we build and test tools.