How to use it
- Enter every version of the page, one per line, as a language code, a | sign and the full address.
- Optionally enter this page’s canonical address.
- Copy the tags into the <head> of every version of the page.
How it works
Each line becomes a link element with rel="alternate" and an hreflang value. Language codes are tidied (language in lowercase, region in uppercase). According to Google’s documentation (read on 2026-11-22, last updated 2026-09-21): alternate URLs must be fully qualified including http or https; each language version must list itself and all other versions; links must be reciprocal; only ISO 639-1 language codes and ISO 3166-1 Alpha 2 region codes are supported (so es-419 is not); and x-default can mark the page for visitors whose language is not listed.
Examples
- en-GB | https://example.com/uk/ becomes <link rel="alternate" hreflang="en-GB" href="https://example.com/uk/" />.
Limitations
- This tool only writes the tags. It cannot check that every page actually links back, or that the pages exist.
- Hreflang is a hint; search engines may ignore it. The canonical tag is also a hint.
- The canonical address should be the page’s own address, and not point to a different version unless you intend that.
References
Last verified . See our Accuracy & Editorial Policy. Found a problem? Email [email protected].