Free tool · SEO and webmaster
Meta tag generator
A meta tag generator writes the HTML tags that go in the head of a page: the title, the meta description, the canonical link, robots rules and the Open Graph tags that shape share cards. Fill in the fields here and copy a complete, correctly escaped set, with character counts and a warning for anything missing.
- Free
- No sign-up
- Runs in your browser
- 13 tags
- 7 Open Graph
- Title 47 characters
- Description 140 characters
Paste the tags inside the <head> of the page, before any script. Use one set per page, with its own title and description.
How to use the Meta Tag Generator
- Type the Page title and the Meta description. The counts next to the labels update as you type.
- Add the Canonical URL, the page's full address with https://.
- Choose whether Search engines may show the page and follow its links, and pick the Share card type.
- Add a Share image URL, its alt text and the site name. More options holds a separate share title, the locale and the X card.
- Press Copy tags and paste them inside the
<head>of the page.
Which meta tags does a page need?
Every page needs a <title>. After that, a meta description, a canonical link and the two technical tags, charset and viewport, cover what search engines and browsers read. Open Graph tags are optional for search but decide how the page looks when someone shares the link. For the example page in the form, the tool writes 13 lines: 7 of them Open Graph, plus the X card.
Google's list of the meta tags it supports includes the description, robots, viewport, charset and a few special ones such as notranslate and google-site-verification. The same page says Google ignores meta tags it does not support, so extra tags do no harm, but they do no good either. The table below lists the lines this tool can write and what each one is for.
| Tag | What it does |
|---|---|
charset | Declares the character encoding, so accents and symbols show correctly. |
viewport | Tells phones to lay the page out at the device width. |
title | The page title: the browser tab, and the main source for the search result headline. |
description | A short summary that search engines may show under the headline. |
canonical | Names the one address you want indexed when the page can be reached at several. |
og:type | The kind of page for share cards: website, or article for a dated post. |
og:title | The headline of the share card. |
og:description | The line of text under the share card headline. |
og:url | The permanent address the share card points to. |
og:image | The picture shown on the share card. |
og:image:alt | Describes the share image for people who cannot see it. |
og:site_name | The name of the whole site, shown on some cards. |
twitter:card | Asks X for a card with a large image. |
robots | Asks search engines to keep the page out of results. |
A robots tag appears only when you change the default. Showing the page and following its links is what search engines do anyway, so the tool leaves the tag out. Choose Hide it (noindex) and it adds <meta name="robots" content="noindex, follow">, with a warning, because a noindex left on by mistake removes a page from search. With only a title filled in, the output shrinks to 3 lines and the result card lists what is missing.
How long should a title and meta description be?
Google sets no length limit for either. Its documentation on title links and on snippets says the same thing for both: there is no limit on how long the text can be, but the result is cut, as needed, to fit the width of the screen. A cut-off title still works; it just loses its last words, so put the important words first.
That is why the tool counts characters but does not refuse a long title. The example title is 47 characters and the example description is 140. The point where text is cut depends on the width of the letters and of the screen, not on a fixed character number: a title full of wide capitals is cut sooner than one in lowercase. Use the counts to compare drafts, keep the words that matter at the front, and treat any character target you read elsewhere as a rule of thumb.
Two rules from the same Google pages matter more than length. Each page should have its own title and description, because identical text on many pages makes the results hard to tell apart. And repeating the same keyword several times in a title can look spammy. Google may also write its own title or snippet when it decides the page content describes the result better than your tags.
What are Open Graph tags, and do I need an X card too?
Open Graph is a set of meta tags, written with a property attribute, that tells apps how to show a link as a card. The protocol names four basic properties: og:title, og:type, og:image and og:url. The tool always writes the title and type, adds the url when you give a canonical address and the image when you give one, and uses your meta description for og:description.
The protocol also says that a page with og:image should have og:image:alt, a short description of what the picture shows. The tool warns when the image has no alt text. The image address must be absolute, with https://, because the card is built by another app, which cannot work out a path relative to your page. Locale follows the language_TERRITORY form, such as en_GB, and the default is en_US if you leave it out.
The X card tag is a single line, <meta name="twitter:card" content="summary_large_image">, that asks for a large image card; choose Small for a thumbnail card or No X tag to leave it out. After you publish, paste the link into a private message to yourself to see how the card looks, since every app crops images in its own way.
Does the meta keywords tag still matter?
No, not for Google. Its documentation states plainly that the meta keywords tag is not used by Google Search and has no effect on indexing or ranking. This generator therefore does not write one. If an old content system asks for keywords, you can leave the field empty.
What does matter is that the tags are valid HTML. A quote mark or an ampersand typed into a title can break an attribute and cut the rest of the line off. The tool escapes them: the text Fish & Chips: "Best in Town" goes into a content attribute as Fish & Chips: "Best in Town". Line breaks and runs of spaces in a description are folded into single spaces.
Where do I paste the generated tags?
Inside the head element of the page, the part between <head> and </head>. Google accepts a canonical link only in the head, and its meta tag guide asks for the head to be valid HTML. Put the tags near the top, with charset first, before scripts and style sheets.
If the site runs on a content system, it may already print a title, a description or a canonical link from its own settings. Fill in those settings instead of pasting a second copy, because two different canonical links or two descriptions send mixed signals. Then open the page, view its source and search for "og:" and "canonical" to check that each tag appears once. To give the page a clean address before you publish, make its slug with the slug generator, and use the robots.txt generator for rules that cover whole folders rather than one page.
Use it with
- UTM Builder: build campaign tracking links.
- SERP Snippet Preview: preview how a page looks in Google.
- Hreflang Tag Generator: build hreflang tags for languages.
Questions
What meta tags should every page have?
A title, a meta description and a canonical link, plus charset and viewport for the browser. Add Open Graph tags if the page will be shared. The tool writes all of them from one form.
How many characters should a meta description be?
Google sets no limit and cuts the snippet as needed to fit the screen, so put the key point first. The tool counts the characters; the example description here is 140.
Does Google use the meta keywords tag?
No. Google says the meta keywords tag has no effect on indexing or ranking, so this tool does not write one.
What is the difference between the title tag and og:title?
The title tag is for the browser tab and search results. og:title is the headline of a share card. They are the same by default; set a separate share title under More options.
Do I need a robots meta tag?
Only to restrict something. Index and follow are the default, so the tool adds a robots tag only when you choose noindex or nofollow.
Why does my share card show no picture?
Usually og:image is missing or not a full https:// address. The tool refuses relative image paths and warns when there is no share image at all.
Sources
How this page was made: the tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations were drafted with AI help and checked against the tool's own output.