Codes and format
The checker tests every code against the ISO 639-1 language codes and the ISO 3166-1 country codes. It reports typical errors such as en-UK, de_DE, country codes on their own or relative URLs, with the correct spelling.
Enter a URL. The checker reads the hreflang annotations from the HTML and the HTTP header, opens every language version and checks return links, language and country codes, x-default, canonical, status codes and noindex. It is free and needs no account.
If https:// is missing, we add it. We check up to 25 language versions.
Each page is checked with all its language versions. You get an overview and the details for each page.
For hreflang in the XML sitemap (xhtml:link). If you enter a domain, we look for the sitemaps in robots.txt. We read up to 15 sitemap files.
Our server fetches each language version once. We do not store the URL or the results.
| Rule | Correct | Wrong |
|---|---|---|
| Code | en, en-GB, de-AT, zh-Hant | en_GB, en-UK, gb |
| URL | https://www.example.com/uk/ | /uk/ |
| Self-reference | Every page also lists itself | Only the other language versions |
| Fallback | x-default for a language selector or main version | x-default on a page set to noindex |
Source: Google Search Central, Localized versions of your pages, as of November 2026. Rules and sources last checked on 27 November 2026, responsible: Ralph Grundmann. Our knowledge article explains how hreflang works.