Skip to content
M2TOOLKIT

Hreflang Tag Generator

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

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

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.

Last reviewed by the M2Toolkit team.

Other tools people use alongside the hreflang tag generator.