Meta Tag Generator
WM-20Type a few key: value lines and get the title, description, canonical, Open Graph and Twitter card tags, escaped and ready to paste into your head.
Runs in your browser. Nothing is uploaded.
Details, one "key: value" per line
HTML tags
How to use it
- Write one key: value per line: title, description, url, image, site name, twitter handle and robots. Only title is required.
- Pick the Twitter card type, or leave it on Auto.
- Choose Generate. If the title or description is long, a comment at the top says so.
- Copy the tags into the head of your page.
What you get
The output holds a title tag, a description, a robots tag if you gave one, a canonical link, Open Graph tags (type, title, description, url, image, site name) and Twitter card tags (card, title, description, image, site). Every value is HTML-escaped, so quotes and ampersands in a title cannot break the attribute. Charset and viewport tags are included by default and can be turned off.
Length warnings
If the title is longer than 60 characters or the description longer than 160, a comment at the top of the output reports the length. Those are common cut-off points, not fixed rules: Google truncates by pixel width, so a title of capital letters can be cut earlier and a short-letter title later. Treat the numbers as a prompt to check your result in a search preview, not as a pass or fail. Characters are counted as visible characters, so an emoji counts as one.
What it does not do
It does not fetch your page, check that the image exists or has the right size, or decide whether the page should be indexed. The robots value is written exactly as you type it, and the type defaults to website unless you give another one, such as article. The url and image must be full addresses starting with http:// or https://. Check the page in a link debugger after you publish.
Error messages and what to do
| Message | What it means | Fix |
|---|---|---|
A "title:" line is required. | Every set of tags needs a title. | Add a line such as title: My page. |
Line 2: unknown key "author". Use title, description, url, image, site name, twitter handle, robots or type. | The key before the colon is not one the tool knows. | Rename or remove the line. |
Line 3: url must be a full address starting with http:// or https://. | A url or image value has no scheme or is a relative path. | Write the full address, for example https://example.com/page. |
Questions people ask
How do I write the input?
Use one line per item, in the form key: value, for example title: My page. Keys can be title, description, url, image, site name, twitter handle, robots and type. The value is everything after the first colon, so addresses with colons are fine.
What length should a title and description be?
Around 60 characters for a title and 160 for a description are common targets. Search engines cut by width, not count, so they are guides. The tool warns above those numbers and never trims your text.
Which Twitter card should I use?
Use summary_large_image when you have a wide image to show, and summary for a small square thumbnail. Auto picks the large card when you gave an image and the small one otherwise. Twitter cards fall back to Open Graph tags when their own tags are missing, but both sets are written here.
Is the canonical tag required?
No, but it tells search engines which address is the main one for a page that can be reached through several. Give the full address of the preferred version. Leave the url line out if you do not want a canonical or og:url tag.
Why are quotes and ampersands changed in the output?
Values go inside HTML attributes, where a raw quote would end the attribute early. They are written as " and & and browsers read them back as the characters you typed.
Does it work for any CMS?
The output is plain HTML for a head section. Some CMS themes and SEO plugins write the same tags themselves, so adding these by hand can create duplicates. Check the page source after you save.
About this tool
Accepts the keys title, description, url, image, site name, twitter handle, robots and type. Only title is required. It writes a title tag, a description, a canonical link, Open Graph tags and Twitter card tags, with every value HTML-escaped. url and image must be full http:// or https:// addresses. If the title is over 60 characters or the description over 160, a comment at the top says so; those are common cut-off points in search results, not fixed limits, because Google truncates by pixel width. The tool does not check that your image exists or its size, and it does not decide whether a page should be indexed; robots is written exactly as you type it.