The invisible lines that decide your search result
Meta tags are the short lines of HTML in a page's head that nobody sees on the page itself, but that search engines, browsers and social networks read before anything else. They decide the blue link people click in Google, whether the page may be indexed at all, which URL counts as the original, how the page scales on a phone, and what card appears when someone pastes the link into LinkedIn or WhatsApp. Getting them right is one of the cheapest wins in SEO, and getting one wrong (a stray noindex, a canonical pointing at the wrong page) can quietly remove a page from search.
This generator puts every tag that matters into one form. You write the title and description once, choose your robots settings, add a canonical URL and an optional share image, and it produces a clean block of code you can paste inside the head of the page. While you type, it measures the title and description in pixels the way Google does and shows you the result on desktop and mobile, so you can see exactly where the text will be cut before you publish.
charset to Open Graph: every tag in the output
charset and viewport
<meta charset="utf-8"> tells the browser how to decode the bytes of the page. Without it, accented letters, curly quotes and currency symbols can turn into gibberish such as "’". It should be the very first tag in the head. The viewport tag, width=device-width, initial-scale=1, tells phones to lay the page out at the width of the screen instead of pretending to be a 980-pixel desktop and zooming out. Google indexes the mobile version of your site first, so a missing viewport tag is a mobile usability failure that affects every device.
The title tag
The title is the single most important on-page element for both ranking and clicks. It becomes the headline of your search result, the label on the browser tab and the default text when someone bookmarks the page. Google truncates it by width, not by character count, at roughly 600 pixels on desktop. A title full of narrow letters can fit 65 characters; one in capitals with lots of W and M may be cut at 45. That is why the generator shows a pixel meter rather than a simple counter.
The meta description
The description does not affect rankings directly, but Google often uses it as the grey snippet under your title, and a clear, specific snippet is what persuades someone to click your result instead of the one above it. Desktop results show around 920 pixels of description (about 155 characters over two lines); mobile results show closer to 680 pixels (about 120 characters). Put the key message first so it survives either cut.
Robots
The robots meta tag controls indexing. The default, if you leave the tag out, is index, follow. The generator states it explicitly and adds max-image-preview:large, which allows Google to show large image thumbnails in Discover and some results. Switch off indexing only for pages that should never appear in search: thank-you pages, internal search results, login screens or staging copies. The generator flags noindex as critical, because it is the tag most often left on by accident after a site launch.
Canonical
The canonical link names the preferred address of the page. The same content is often reachable at several URLs (with and without a trailing slash, with tracking parameters, through a filter), and the canonical tells search engines which one should collect the ranking signals. Always use the full absolute URL, including https:// and the exact host you want indexed.
Open Graph and X (Twitter)
Open Graph tags (og:title, og:description, og:image, og:url) were created by Facebook and are now read by LinkedIn, Slack, Discord, WhatsApp, iMessage and most chat apps. X reads its own twitter: tags first and falls back to Open Graph. The generator reuses your title and description for both so they never drift apart, and adds the card type and handle that X needs for a large image card.
A worked example
Say you sell handmade leather wallets and you are writing the category page. A first draft of the title might be "Oak & Hide | Premium Handmade Full-Grain Leather Wallets, Card Holders and Accessories for Men and Women". In the preview that runs to well over 700 pixels, so Google would cut it after "Card", and the brand name at the front uses up the most valuable space. Rewriting it as "Handmade Leather Wallets | Oak & Hide" puts the search phrase first and fits with room to spare. The description then sells the click: the material, the guarantee, free delivery, a reason to choose you. The generator turns that into:
<meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Handmade Leather Wallets | Oak & Hide</title> <meta name="description" content="Slim, full-grain leather wallets stitched by hand..." /> <meta name="robots" content="index, follow, max-image-preview:large" /> <link rel="canonical" href="https://example.com/wallets" /> <meta property="og:type" content="website" /> <meta property="og:title" content="Handmade Leather Wallets | Oak & Hide" /> <meta property="og:image" content="https://example.com/images/wallets-1200x630.jpg" /> <meta name="twitter:card" content="summary_large_image" />
Notice that the ampersand in the brand name is written as &. The generator escapes ampersands, quotes and angle brackets automatically, because an unescaped double quote inside a content attribute ends the attribute early and silently truncates your description.
Writing titles that earn the click
- Lead with the words people search for. The start of the title carries the most weight with readers scanning the page and is the part that survives truncation.
- Make every title unique across your site. Duplicate titles make pages compete with each other and are a common reason Google rewrites them.
- Keep the brand short and at the end, unless the page is your homepage or the brand is what people search for.
- Match the title to the page's main heading. When they say different things, Google is more likely to replace your title with the H1.
- Add a concrete reason to click where it fits: a year for time-sensitive topics, a number, a price, "free", or the result the reader gets.
Writing descriptions Google will actually use
Google picks its own snippet when it thinks your description does not answer the search, so the goal is a description that accurately summarises the page in plain language. Write it as a short pitch: what the page is, who it is for, and what they get. Avoid repeating the title word for word, avoid lists of keywords, and never reuse the same description across many pages. For product and category pages, specific facts beat adjectives: "Free UK delivery, 10-year guarantee" persuades more than "high quality and great value".
If the mobile preview cuts your description mid-sentence, check what remains still makes sense. You do not need to fit every word, but the first 120 characters should stand on their own.
Tags you can safely leave out
A lot of old advice tells you to add tags that no major search engine uses today. Google has ignored the meta keywords tag since 2009, and Bing has said a stuffed keywords tag can count against you, so this tool does not generate one. The revisit-after, distribution, rating and generator tags have no effect on Google. The language of a page is better declared with the lang attribute on the html element (the downloaded file sets it from your locale) and, for multilingual sites, with hreflang links. Author and theme-color are optional extras: author is informational, and theme-color tints the browser bar on mobile.
Share images that look right everywhere
Use an image of 1200 by 630 pixels, a 1.91 to 1 ratio. Facebook, LinkedIn and X all display large cards at roughly that shape, and anything much smaller (under 600 pixels wide) is often shown as a small square thumbnail instead. Keep important text and logos away from the edges, because some apps crop slightly. Always use an absolute https URL, because networks ignore relative paths, and add alt text so screen readers can describe the image. After publishing, networks cache your card, so if you change the image use the platform debugger (Facebook Sharing Debugger, LinkedIn Post Inspector) to refresh it.
Pasting the block into WordPress, Shopify or Next.js
Paste the generated block inside the <head> of the page, before </head>. Only one of each tag should exist on a page, so if your theme or CMS already outputs a title or canonical, change it there instead of adding a second copy. Two conflicting canonicals or robots tags leave search engines guessing, and Google picks the most restrictive robots directive it finds.
- WordPress: use the fields in Yoast, Rank Math or All in One SEO; they write these tags for you.
- Shopify and Webflow: fill in the search engine listing and Open Graph fields in page settings.
- Next.js, Nuxt and similar: use the framework's metadata API with the same values.
- Static HTML: paste the block directly, or start from the downloaded HTML file.
Confirming the live page outputs what you generated
Generating tags is half the job; the other half is confirming the live page outputs exactly what you intended. Caching plugins, themes and tag managers sometimes override or duplicate them. Run the published URL through the Meta Tag Analyzer to see what search engines actually receive, use the Canonical Checker if you changed the canonical, and use the Open Graph and Twitter Card previews to fine-tune the social cards. In Google Search Console, the URL Inspection tool shows which canonical Google selected, which is the final word on whether your tag was accepted. Our meta tags guide explains which optional tags are worth adding and which are safe to ignore.
