How to use the Hreflang Tag Generator
- Add each language or regional version with its URL.
- Set an x-default fallback.
- 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.