Checks per page
4
Code format, absolute URLs, self-reference, x-default
Performance + SEO + UX Intelligence
hreflang tags tell Google which version of a page to show to which language or country. Enter a URL to check its hreflang tags for code format, absolute URLs, a self-reference and an x-default fallback. Free, no signup.
Checks per page
4
Code format, absolute URLs, self-reference, x-default
Language codes
ISO 639-1
With an optional ISO 3166-1 region, such as en-GB
Where it shows
SEO tab
Free for everyone
If your site has the same page in several languages, or separate versions for different countries, Google needs to know which version belongs to which audience. hreflang tags are how you tell it.
Each language version lists all the others with a link tag such as <link rel="alternate" hreflang="de" href="https://example.com/de/">. When the tags are right, a searcher in Germany sees the German page and a searcher in the UK sees the en-GB page.
This hreflang checker reads the hreflang tags in your page's HTML and checks the details that most often go wrong: the code format, absolute URLs, the self-reference and the x-default fallback.
Without hreflang, Google may show the wrong language version, for example the US page to UK searchers with dollar prices, or the English page in Spanish results.
Near-identical regional pages, such as en-US and en-GB, can look like duplicates. hreflang tells Google they are intentional alternatives for different audiences.
hreflang errors are silent. Google ignores tags it cannot use rather than reporting them, so a typo can switch off targeting for a whole language without any visible sign.
Each value must be a language code, optionally followed by a region, such as fr, fr-CA or zh-Hant-TW, or x-default.
Each href must be a full address starting with https://, not a relative path.
The page must list itself among its alternates.
A fallback for visitors whose language or region does not match any version.
hreflang results are in the SEO section of the report, which is free for everyone. If the page has no hreflang tags, the report does not show an hreflang check, because a single-language site does not need them.
Site Vitals reads the link rel="alternate" tags with an hreflang attribute from the HTML your server sends, and checks each one.
The code check looks at format, not at whether a code exists. A value such as en-UK has the right shape but is not a real region (the code for the United Kingdom is GB), so double-check region codes yourself.
It checks one page. It does not fetch the alternate pages to confirm they link back, and it does not read hreflang from XML sitemaps or HTTP headers. Scan each language version to check that every page lists the full set.
Write down each language or country version of the page and its exact URL.
Use a language code (en, de, es) and add a region only when versions differ by country (en-US, en-GB).
Each version lists all versions, including itself, with absolute URLs.
Point x-default at your language selector or the version for everyone else.
Each version's canonical tag should point to itself, not to another language.
Run the checker on every language version to confirm the tags are complete.
Using a country code as a language, such as "uk" for English in the UK. "uk" is Ukrainian; use en-GB.
Missing return links: the English page lists the German page, but the German page does not list the English one, so Google may ignore the pair.
Relative URLs such as /de/ instead of https://example.com/de/.
Canonical tags on every language version pointing to the English page, which tells Google to ignore the other versions.
Forgetting the self-reference on each page.
The language part comes first and is required; the region is optional.
| hreflang value | Meaning | Valid? |
|---|---|---|
| en | English, any country | Yes |
| en-GB | English, United Kingdom | Yes |
| es-419 | Spanish, Latin America | Yes |
| x-default | Fallback for everyone else | Yes |
| en-UK | Not a real region code | No, use en-GB |
| GB | A region without a language | No, use en-GB |
Generate hreflang tags from one list of versions, so every page always lists the same set.
Only use regions when the content actually differs by country, such as prices, spelling or shipping.
Keep each language version on its own URL; do not switch language on the same URL by cookie or browser setting.
Choose one place for hreflang (HTML, sitemap or headers) rather than mixing them.
Re-check after adding a language or changing URL structure.
hreflang is an HTML attribute that tells search engines which language, and optionally which country, a page is for, and which other URLs are versions of the same page for other audiences.
It is recommended, not required. x-default tells Google which page to show when a searcher's language or region matches none of your versions, often a language selector or your main English page.
Yes. If page A lists page B as an alternate, page B must list page A as well. Google may ignore hreflang pairs that are not confirmed in both directions. This checker scans one page, so run it on each version.
Bing has said it relies mainly on the content-language meta tag or HTTP header instead. hreflang is mostly for Google and Yandex, so adding both does no harm.
No. hreflang results are in the SEO section of the report, which is free for everyone.
hreflang tags send each visitor to the right language or country version. Small errors switch them off without warning.
Scan each language version after any change to catch format errors, relative URLs and missing self-references.
Validate code format, absolute URLs, self-reference and x-default for every hreflang tag on your page. Free, no signup.