What it does
hreflang tells search engines which language or regional version of a page should be shown. It is a set of alternate links, not a translation tool. Broken codes, missing self-references or a missing x-default can split signals between versions.
How it works
Each entry pairs a language code with an absolute URL. Use ISO 639-1 for language, optionally with ISO 3166-1 alpha-2 for region, such as en, en-GB or pt-BR.
Every page in the set should link to itself and to every other version, including x-default. The x-default entry points to the page shown when no language matches.
hreflang URLs should be canonical, return 200 and avoid redirects. A canonical that points elsewhere can cancel the hreflang annotation.
When to use it
- Audit a new locale launch.
- Find missing x-default or self-references.
- Check for duplicated or invalid region codes.
- Compare hreflang with canonical URLs.
Glossary
- hreflang
- A link annotation naming the language or region of a page.
- x-default
- The fallback page for unmatched languages.
- ISO 639-1
- Two-letter language codes such as en or de.
- ISO 3166-1
- Two-letter country or region codes such as GB or BR.
Frequently asked questions
Do I need hreflang for translated pages?+
Yes, when the same content exists in several languages or regions. It helps search engines show the right version.
Is x-default required?+
Not strictly, but it is recommended when you have a global fallback or language selector page.
Can hreflang point to a redirect?+
It should not. Link to the final canonical URL instead.
Do all pages need to link back?+
Yes. The set should be reciprocal; one-way annotations are often ignored.
API & MCP
The same result envelope is available over REST and MCP. Replace the sample value with your own target.
curl "https://100www.dev/api/v1/tools/hreflang-checker?u=https%3A%2F%2Fexample.com"Shareable result
https://100www.dev/tools/hreflang-checker?u=https%3A%2F%2Fexample.com

100www engineering
EditorialReviewed by Steve · · Report an error
Tested from the 100www probe network; results vary by location and network.


