# Meta Tag Generator for SEO and Social Sharing

> Free meta tag generator: create title, description, robots, canonical, Open Graph, Twitter Card and hreflang tags with a live SERP preview, then copy the HTML.

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.

- Use it free (no signup): https://yes-seo.com/meta-tag-generator
- What it does: Meta tag generator: fill a form and copy ready HTML for title, description, robots, canonical, viewport, Open Graph, Twitter Card and hreflang tags, with a live SERP preview.

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

1. **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.
2. **Watch the preview** — The SERP preview updates as you type, so you can see where Google would cut the title and description.
3. **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

```
Waterproof Hiking Boots for Women – Tested on Trail | Example

-

```

**Title and description** shape your search result; see [title tag](https://yes-seo.com/glossary/title-tag) and [meta description](https://yes-seo.com/glossary/meta-description).

- **Robots** is optional, because `index, follow` is the default. Use it for `noindex` on thank-you pages or for preview settings such as `max-image-preview:large`; Google’s [robots meta tag reference](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag) lists every value.

- **Canonical** names the preferred URL; always use an absolute address. See [canonical tag](https://yes-seo.com/glossary/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](https://yes-seo.com/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](https://yes-seo.com/open-graph-checker).

## Getting the hreflang block right

[Hreflang](https://yes-seo.com/glossary/hreflang) is where generated code saves the most time, because the rules are strict. Google’s [localized versions guide](https://developers.google.com/search/docs/specialty/international/localized-versions) 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: `uk` is the language code for Ukrainian, while the United Kingdom’s region code is `GB`, so British English is `en-GB`, never `en-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-default` for 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](https://yes-seo.com/meta-tags-checker) and validate language versions with the [hreflang checker](https://yes-seo.com/hreflang-checker).


## 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.

