Meta Tag Generator for SEO and Social Sharing
Fill in a short form and copy clean, valid HTML for every meta tag your page needs, with a live Google preview as you type.
Indexing (robots)
Language versions (hreflang)
List every language version, including this page. Each version must list all the others.
Social sharing (Open Graph and X)
Other tags
Runs entirely in your browser — nothing you type is sent to our servers.
Paste the tags inside the <head> of your page.
Hand-written meta tags are easy to get slightly wrong: a missing quote, a relative canonical, Open Graph tags written with name instead of property, or an hreflang code like en-UK that doesn’t exist. This meta tag generator turns a simple form into correct HTML for the title, meta description, robots, canonical, viewport, Open Graph, Twitter Card and hreflang tags.
A live SERP preview shows how the title and description will look in Google while you type, so you can tune the wording before you copy the code. It runs in your browser, is free and needs no signup.
How to generate meta tags
Fill in the form
Enter the page title, description and URL, then choose robots settings and add social and language details if you need them.
Watch the preview
The SERP preview updates as you type, so you can see where Google would cut the title and description.
Copy and paste
Copy the HTML into the head section of your page template, or enter the same values in your CMS or SEO plugin.
What each generated tag does
<title>Waterproof Hiking Boots for Women – Tested on Trail | Example</title>
<meta name="description" content="Waterproof boots tested on wet trails, with picks for wide feet, ankle support and tight budgets, plus sizing notes and free 60-day returns.">
<meta name="robots" content="max-image-preview:large">
<link rel="canonical" href="https://example.com/womens-waterproof-hiking-boots">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="The Best Waterproof Hiking Boots for Women">
<meta property="og:image" content="https://example.com/img/boots-1200x630.jpg">
<meta name="twitter:card" content="summary_large_image">
<link rel="alternate" hreflang="en" href="https://example.com/womens-waterproof-hiking-boots">
<link rel="alternate" hreflang="fr" href="https://example.com/fr/chaussures-randonnee-impermeables-femme">
<link rel="alternate" hreflang="x-default" href="https://example.com/womens-waterproof-hiking-boots">
- Title and description shape your search result; see title tag and meta description.
- Robots is optional, because
index, followis the default. Use it fornoindexon thank-you pages or for preview settings such asmax-image-preview:large; Google’s robots meta tag reference lists every value. - Canonical names the preferred URL; always use an absolute address. See canonical tag.
- Hreflang links language versions of the same page; the rules are below.
Choosing robots values safely
| Goal | Robots value |
|---|---|
| Normal page you want found | No robots tag needed |
| Keep out of search results but let links be followed | noindex |
| Hide the text snippet (also keeps the page out of AI Overviews) | nosnippet |
| Limit the snippet length | max-snippet:50 |
| Allow large image previews | max-image-preview:large |
| Drop from results after a date | unavailable_after: 2026-12-31 |
A noindex only works if crawlers can fetch the page. If the same URL is blocked in robots.txt, Google never sees the tag and may keep the URL indexed from links pointing to it. Check with the robots.txt tester before you rely on it.
Where to paste the code
- Hand-coded sites: inside
<head>, after<meta charset="utf-8">, once per page. - WordPress, Shopify and other CMSs: use the built-in SEO fields or your plugin’s settings rather than pasting raw HTML, or the theme and the plugin may both output a title and a description.
- JavaScript frameworks: render the tags on the server, through server-side rendering or static generation. Many crawlers and social apps read only the initial HTML.
After publishing, test the social card with the Open Graph checker.
Getting the hreflang block right
Hreflang is where generated code saves the most time, because the rules are strict. Google’s localized versions guide sets them out:
- Use an ISO 639-1 language code, optionally followed by an ISO 3166-1 region code:
fr,fr-CA,en-GB. A region can’t stand alone, and watch the classic trap:ukis the language code for Ukrainian, while the United Kingdom’s region code isGB, so British English isen-GB, neveren-UK. - Every version lists every other version and itself, with absolute URLs.
- Links must be reciprocal: if the English page points to the French one, the French page must point back, or Google may ignore the pair.
- Add
x-defaultfor the page to show when no language matches, such as a language picker or your main version.
Tips for meta tags that work
- Write a unique title and description for every important page; templated duplicates are less likely to be shown as written.
- Use the same canonical URL in the canonical tag, og:url and the hreflang self-reference so all three agree.
- Don’t add a robots tag “just in case” — an unneeded noindex is one of the costliest SEO mistakes.
- Build the tags into your page template so new pages inherit the structure.
- Regenerate the hreflang block whenever you add a language, and update it on every language version.
Limits to keep in mind
The generator writes code from what you enter. It doesn’t inspect your live page, can’t tell whether your URLs return 200 or redirect, and can’t install anything on your site. After you publish, verify the tags on the live URL with the meta tags checker and validate language versions with the hreflang checker.
Last updated Oct 30, 2026 by the Yes SEO team.
Meta Tag Generator: frequently asked questions
What meta tags does every page need?
At minimum a charset, a viewport, a unique title and a meta description. Add a canonical link, Open Graph and Twitter Card tags for sharing, and hreflang if the page has other language versions.
Where do I put the generated meta tags?
In the head section of the page’s HTML, once per page. In a CMS, enter the values in its SEO fields instead of pasting code, so tags aren’t duplicated.
Do I need a robots meta tag?
Only when you want something other than the default. Pages are indexable and their links followable without one; add a robots tag for noindex, nosnippet or preview settings.
Is the meta keywords tag still needed?
No. Google doesn’t use it, so the generator focuses on the tags search engines and social platforms actually read.
Does the generator store what I type?
No. It runs in your browser and builds the code on the page, so there’s no account and nothing to save on our side.