Hreflang Tag Checker for Multilingual and Multi-Region Sites
Enter a URL to see its hreflang cluster, the codes it uses and whether each alternate links back and is canonical.
Hreflang tells search engines that a page has versions for other languages or regions, so a searcher in Paris gets the French page and one in London gets the UK English page. It is also one of the easiest annotations to get wrong: invalid codes, missing return links and canonicals pointing elsewhere all make Google ignore it.
This hreflang checker lists every alternate declared in the page’s HTML and HTTP headers, validates the language and region codes, checks for x-default and a self-reference, and then fetches up to 10 alternates to verify that each one links back and is its own canonical.
How to check hreflang tags
Enter one language version
Any version works: the checker reads its hreflang set and follows it to the others.
Check the codes
Each alternate is listed with its code and flagged if the language or region is invalid or duplicated.
Verify the cluster
We fetch up to 10 alternates and show which return links or canonicals are missing or wrong.
What a correct hreflang cluster looks like
Every version lists all versions, itself included. For a site with US English, UK English, French and a global fallback, each of the four pages carries the same block (Google’s guide to localized versions):
<link rel="alternate" hreflang="en-US" href="https://www.example.com/us/">
<link rel="alternate" hreflang="en-GB" href="https://www.example.com/uk/">
<link rel="alternate" hreflang="fr" href="https://www.example.com/fr/">
<link rel="alternate" hreflang="x-default" href="https://www.example.com/">
The same set can be sent in an HTTP Link header, which suits PDFs, or listed in your XML sitemap with xhtml:link elements. Google treats the three methods as equivalent; pick one and apply it consistently. Our hreflang glossary entry covers the syntax in more detail.
Language and region codes that trip people up
The value is an ISO 639-1 language code, optionally followed by an ISO 3166-1 alpha-2 region code. A region on its own is invalid.
| Wrong | Right | Why |
|---|---|---|
| en-UK | en-GB | The ISO country code for the United Kingdom is GB. |
| uk | en-GB | uk is the code for Ukrainian. |
| jp | ja | Japanese is ja; JP is the country. |
| en_US | en-US | Use a hyphen, not an underscore. |
| en-EU | en | EU isn’t an assigned country code; target the language instead. |
Codes are case-insensitive, and script variants such as zh-Hant and zh-Hans are accepted for languages written in more than one script.
Return links and canonicals
Hreflang works in pairs. If the French page lists the English page but the English page doesn’t list the French one back, Google ignores that pair. The second rule is less known: each alternate must be the canonical version of itself. If /fr/ carries <link rel="canonical" href="https://www.example.com/us/">, you are telling Google the French page is a duplicate of the English one, and it falls out of the cluster. Alternates should also return 200 rather than redirect, and be indexable; the canonical checker tests each one individually.
Use x-default for the page that serves everyone you don’t specifically target, typically a language selector or your main international version.
Don’t redirect visitors by location
Automatic redirects based on IP address or browser language make it hard for crawlers to see every version, and Googlebot mostly crawls from US addresses. Google recommends against them: let people switch with clear links, and let hreflang suggest the right version in search. If you want to nudge visitors, show a dismissible banner instead of redirecting. Our hreflang guide walks through full international setups.
Tips for hreflang that works
- Generate hreflang from one source of truth, such as your CMS or a mapping table, instead of editing tags by hand on each page.
- Use the same absolute URL format as your canonicals, including protocol, host and trailing slash.
- Only connect pages that are real equivalents; pointing every language at the home page breaks the cluster.
- Add x-default whenever you have a language selector or a global version.
- When you add a new language, update every existing page in the cluster, not just the new one.
Limits to keep in mind
This checker reads hreflang from the page’s HTML and HTTP headers and fetches up to 10 alternates, so very large clusters are only partly verified. Hreflang declared in XML sitemaps isn’t read here (the sitemap validator checks those), tags inserted by JavaScript aren’t seen, and the tool can’t confirm that each page is actually written in the language its code claims.
Last updated Oct 30, 2026 by the Yes SEO team.
Hreflang Checker: frequently asked questions
Does hreflang improve rankings?
Not directly. It helps Google show the right language or regional version of a page that already ranks, which reduces wrong-country visits and can improve clicks. It won’t make a page rank in a market where it otherwise wouldn’t.
Do I need x-default?
It is optional but recommended. x-default tells Google which page to show when none of your language or region versions matches the searcher, such as a language picker or your main English page.
Do I need hreflang for the same language in different countries?
Yes, if you have separate pages per market, for example prices in dollars and in pounds. Hreflang with en-US and en-GB helps Google show the right URL even when the two pages are very similar.
Is “uk” a valid hreflang code for the United Kingdom?
No. uk is the language code for Ukrainian. For English in the United Kingdom, use en-GB.
Can hreflang point to another domain?
Yes. Alternates can live on different domains or country domains, such as example.fr and example.de, as long as every page links to all the others and each one is canonical to itself.
Why does Google show the wrong language version?
The usual causes are missing return links, alternates canonicalized to another language, invalid codes or redirects. Google also weighs other signals, so make sure each version is fully translated and linked internally.