SEO Stack Hub Use Free Tools

Free Hreflang Tag Generator

If your site has versions for different languages or countries, hreflang tags tell Google which version to show each searcher. Enter each language-region code with its URL and this tool writes the full set of tags, including x-default, ready to paste into the head of every version.

Frequently asked questions

What does hreflang do?

It tells Google which language or country version of a page to show to each searcher, so UK visitors see your UK page and so on.

Where do I put the tags?

In the head of every version of the page. Each version must list all versions, including itself.

What is x-default?

The page to show when no language or country matches, often your main or language-picker page.

More free SEO tools

See all 26 free tools →

How to use the Hreflang Tag Generator

  1. Enter one version per line: language-region code, then the URL (for example en-gb, https://example.com/uk/).
  2. Add your x-default URL.
  3. Click Generate tags.
  4. Paste the same full set of tags into the head of every version of the page.
SEO Stack Hub was founded by Zahid Butt.