Meta tag generator (SEO and Open Graph)
A page's meta tags tell search engines and social apps what it is: the title and description searchers see, the canonical URL, and the Open Graph tags social apps read to build link previews, with matching Twitter card tags. Fill in the page details and the generator writes the tags, escaped and checked against our length budgets.
Tags generated
18 tags
title 502 px · description 143 characters
https://www.example.com › mugs
Handmade Ceramic Mugs in Six Glazes | Example Store
Browse handmade ceramic mugs in six glazes, each holding 350 ml. See every glaze in daylight photos and order online for delivery across India.
- Pass · Title within 600 px502 of 600 px, measured as typed
- Pass · Description 120–160 characters143 characters
- Pass · Canonical is an absolute https URLhttps://www.example.com/mugs
- Pass · og:image is an absolute URLset
- Pass · og:image has alt text63 characters
- Pass · Share image at least 1200 × 630 px1200 × 630 px
- Pass · No robots tagnone written
HTML for the page's <head>
<title>Handmade Ceramic Mugs in Six Glazes | Example Store</title> <meta name="description" content="Browse handmade ceramic mugs in six glazes, each holding 350 ml. See every glaze in daylight photos and order online for delivery across India." /> <link rel="canonical" href="https://www.example.com/mugs" /> <meta property="og:type" content="website" /> <meta property="og:url" content="https://www.example.com/mugs" /> <meta property="og:title" content="Handmade Ceramic Mugs in Six Glazes | Example Store" /> <meta property="og:description" content="Browse handmade ceramic mugs in six glazes, each holding 350 ml. See every glaze in daylight photos and order online for delivery across India." /> <meta property="og:site_name" content="Example Store" /> <meta property="og:locale" content="en_IN" /> <meta property="og:image" content="https://www.example.com/og/mugs.png" /> <meta property="og:image:width" content="1200" /> <meta property="og:image:height" content="630" /> <meta property="og:image:alt" content="Six handmade ceramic mugs in different glazes on a wooden shelf" /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:title" content="Handmade Ceramic Mugs in Six Glazes | Example Store" /> <meta name="twitter:description" content="Browse handmade ceramic mugs in six glazes, each holding 350 ml. See every glaze in daylight photos and order online for delivery across India." /> <meta name="twitter:image" content="https://www.example.com/og/mugs.png" /> <meta name="twitter:image:alt" content="Six handmade ceramic mugs in different glazes on a wooden shelf" />
- Title width
- 502 px of 600Measured exactly as typed; nothing appended
- Title length
- 51 characters
- Description length
- 143 charactersOur house rule is 120–160; Google sets no limit
- og:type
- website
- Twitter card
- summary_large_image
- Robots
- No tag (Google's defaults: index, follow)
- The title is measured exactly as you typed it, with nothing appended. If your site's template adds a brand after every title, type it in so 502 px is the real width.
- The twitter:* tags repeat the same title, description and image. X's own card documentation could not be retrieved when we checked, so this tool writes the tag names without relying on any fallback between them and the og:* tags.
Which meta tags does a page need?
Every ordinary HTML page needs exactly one <title> element in its head; the HTML Standard requires it. After that come a meta description, which Google sometimes uses for the snippet, a rel="canonical" link naming the page's preferred URL, and Open Graph tags for link previews. Open Graph lists four required properties: og:title, og:type, og:image and og:url.
This generator measures the title in pixels with the Arial 20 px width table our own SEO audit uses, exactly as you type it, with nothing appended. If your template adds a brand such as " | Example Store" after every title, type it in so the measurement is the real one. The budgets, a title of at most 600 px and a description of 120 to 160 characters, are our house rules: Google sets no length limit for either and truncates both as needed to fit the device width.
Google asks for absolute URLs in rel="canonical": it supports relative paths but says they can cause problems in the long run, and the link only counts inside <head>. Google also prefers HTTPS pages over HTTP ones as canonical. A normal page needs no robots tag: Google says the default values are index, follow and don't need to be specified, so our framework leaves the tag out and adds noindex only to keep a page out of results.
Open Graph says a page with og:image should also give og:image:alt, a description of what is in the image. Meta recommends images of at least 1200 × 630 px for the best display on high-resolution devices, a ratio close to 1.91:1 so the whole image shows, and files no larger than 8 MB. The twitter:* tags repeat the same title, description and image; X's card documentation could not be retrieved when we checked, so this page makes no claim about how X reads them.
Every value is escaped before it is written: & becomes &, < becomes <, > becomes > and, inside attribute values, " becomes ". A double-quoted attribute can't contain a literal quotation mark, and browsers turn the entities back into the original characters.
<title>…</title> ← escaped text <meta name="description" content="…" /> <link rel="canonical" href="https://…" /> <meta property="og:…" content="…" /> ← Open Graph uses property= <meta name="twitter:…" content="…" /> escaping: & → & < → < > → > " → "
What does each meta tag do, and which are required?
| Tag | Read by | Required? | What the documentation says |
|---|---|---|---|
| <title> | Browsers; Google (title links) | Yes: exactly one in an ordinary HTML document | Google may also build a title link from og:title, h1 headings and other page text |
| meta name="description" | Google (snippets) | No | Google sometimes uses it when it describes the page more accurately than the page's own text |
| link rel="canonical" | No | A strong signal for the preferred URL; accepted only in <head>; use absolute URLs | |
| meta name="robots" | Google and other crawlers | No | The default values are index, follow and don't need to be specified |
| meta name="keywords" | Not Google Search | No | Google says it is not used and has no effect on indexing or ranking; not written here |
| og:title | Open Graph consumers (link previews); Google may use it for title links | Yes (Open Graph) | The title as it should appear within the graph |
| og:type | Open Graph consumers | Yes (Open Graph) | website or article; a page without markup is treated as website |
| og:image | Open Graph consumers | Yes (Open Graph) | Meta: at least 1200 × 630 px, about 1.91:1, up to 8 MB |
| og:url | Open Graph consumers | Yes (Open Graph) | The canonical URL, used as the page's permanent ID |
| og:description | Open Graph consumers | Optional | A one to two sentence description |
| og:site_name | Open Graph consumers | Optional | The name of the overall site |
| og:locale | Open Graph consumers | Optional | language_TERRITORY; the default is en_US |
| og:image:alt | Open Graph consumers | Should be set whenever og:image is | What is in the image, not a caption |
| og:image:width, og:image:height | Open Graph consumers; Meta's crawler | Optional | Meta: lets its crawler render the image right away instead of downloading it first |
| twitter:card, :title, :description, :image, :image:alt | X (Twitter) cards | Not verified | X's documentation could not be retrieved on 2026-10-20; tag names only |
How to generate meta tags for a page
- 1Enter the title and descriptionType the page title exactly as it will appear, brand included, and the meta description.
- 2Add the canonical URL and share imagePaste the page's full https:// address, then the absolute URL of its share image with alt text and its size in pixels.
- 3Pick the page type, locale, card and robots optionChoose website or article, a locale such as en_IN, and leave the robots option on No robots tag for a normal page.
- 4Check the verdicts and copy the blockFix anything marked as failing, then paste the tags inside the page's <head>; the canonical link only counts there.
Frequently asked questions
What is the difference between og:title and the title tag?
Do I need a robots meta tag on every page?
Should a canonical URL be absolute or relative?
Does Google use the meta keywords tag?
Why do ampersands and quotes in meta tags need escaping?
Sources
- The Open Graph protocol (ogp.me): required and optional properties, og:image:alt, og:locale, object types (checked 20 Oct 2026)
- Google Search Central: Influencing your title links in search results (checked 20 Oct 2026)
- Google Search Central: Control your snippets in search results (checked 20 Oct 2026)
- Google Search Central: How to specify a canonical URL with rel="canonical" and other methods (checked 20 Oct 2026)
- Google Search Central: Meta tags and attributes that Google supports (robots defaults, keywords) (checked 20 Oct 2026)
- Google Search Central: Robots meta tag, data-nosnippet and X-Robots-Tag specifications (checked 20 Oct 2026)
- Meta for Developers: images in link shares (1200 × 630, 1.91:1, 8 MB, og:image:width and height) (checked 20 Oct 2026)
- WHATWG HTML Standard: the title element (exactly one per ordinary document) (checked 20 Oct 2026)
- WHATWG HTML Standard: attribute value syntax and escapable raw text (checked 20 Oct 2026)
Need a custom dev tool for your team?
We build internal tools, dashboards, APIs, and SaaS platforms. If you can describe it, we can ship it.
Built by CountryDevs · No signup · No ads · We count visits, never what you enter