Skip to content
M2TOOLKIT

SEO · free tool

Hreflang Tag Generator

Create hreflang tags so search engines show the right language version to each visitor.

Use it as often as you like — it's free, with no sign-up and no limits.

  • SEO
  • Free
  • No sign-up
  • Runs in your browser
  • Updated

Every language version must list all versions, including itself, and the links must point back to each other — otherwise search engines ignore them.

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us.

How to use the Hreflang Tag Generator

  1. Add each language or regional version with its URL.
  2. Set an x-default fallback.
  3. Paste the tags into the <head> of every version.

What does this tool do?

Hreflang tells Google that pages are translations or regional variants of each other, so a French searcher sees your French page. Each version must list every other version and itself, and the links must be reciprocal.

Why use it?

  • Avoid the wrong language ranking.
  • Prevent regional pages competing as duplicates.
  • Catch invalid codes.

Codes

Language only: en, de, fr. Language and region: en-GB, en-US, pt-BR. Use x-default for a language selector or global fallback page.

Privacy

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.

Frequently asked questions

What is x-default?

x-default tells search engines which page to show people whose language or region doesn't match any of your versions — often a language picker or your main English page.

Which language and region codes should I use?

Use an ISO 639-1 language code, optionally followed by an ISO 3166-1 region code, such as en, en-GB or es-MX. Note that the code for the United Kingdom is GB, not UK.

Last reviewed by the M2Toolkit team.

Other tools people use alongside the hreflang tag generator.