What does hreflang tell search engines?
Hreflang is an annotation that tells search engines which language and region a page is meant for, and which alternate version to show a visitor searching from somewhere else. If you run a /en-gb/, /en-us/ and /fr/ version of the same page, hreflang is what stops Google serving the British page to a French searcher. Just as damaging, it also stops Google treating all three as duplicate content competing against each other.
It isn't a ranking factor in the way page speed or backlinks are. It's a routing signal. Get it right and each region's audience lands on the page written for them. Get it wrong and search engines ignore your regional targeting, or index the wrong version for the wrong market.
This matters most for sites with:
- Multiple language versions of the same content.
- The same language served to different regions (US vs. UK vs. Australian English).
- ccTLDs, subdomains or subfolders splitting an international audience.
The syntax: language codes, region codes and x-default
A hreflang annotation pairs an ISO 639-1 language code with an optional ISO 3166-1 region code, separated by a hyphen: en-gb, fr-ca, de-de. The language code alone (en, fr) targets speakers of that language everywhere; adding a region narrows it further.
There's also x-default, a special value that names the fallback page shown to visitors who don't match any of the explicit language/region pairs, typically a language-selector page or your primary market's version.
Hreflang can be declared in three places, and a site only needs to use one of them consistently:
- HTML
<link>tags in the<head>. The most common method for smaller sites, with one line per alternate version plus a self-referencing tag. - HTTP headers. Useful for non-HTML resources like PDFs, where there's no
<head>to put a link tag in. - XML sitemap annotations. One block of
<xhtml:link>entries per URL, which scales better than head tags on very large sites because it keeps the markup out of every page.
Whichever method you choose, every version in a cluster must list every other version, including itself. That self-reference is easy to forget and just as easy to check for on a crawl.
Why one missing return tag breaks the whole cluster
Hreflang is only valid when it's reciprocal. If your English page links to the French page as its fr alternate, the French page must link straight back to the English page as its en alternate. Search engines treat this as a two-way handshake. A one-directional link doesn't count as confirmation, so the whole relationship is disregarded.
This is what makes hreflang fragile at scale. A cluster of five regional pages needs the return link done correctly on all five. Migrate one page's URL without updating the others, and every page still pointing at the old address breaks reciprocity for the entire cluster, not just the one that changed. Search Console will often report the tags as "not confirmed" without making it obvious which page is the odd one out.
Common hreflang errors worth knowing
Most hreflang problems fall into a handful of repeatable mistakes:
- Missing reciprocal (return) tags. The single most common cause of hreflang being ignored altogether.
- Invalid language or region codes. Using a country code where a language code belongs (
gbon its own), or writingen-ukfor British English: there is no regionuk, the United Kingdom isgb, andukon its own means Ukrainian. Then there are typos that don't match the ISO lists at all. - Hreflang URLs that 404, redirect, or aren't canonical. Pointing to a version of the page that no longer resolves cleanly, so the "alternate" leads nowhere useful.
- Missing
x-default. Leaving visitors outside your named regions with no defined fallback. - Conflicting annotations. The same URL declared for two different language/region pairs, or a page whose hreflang tags disagree with its own self-referencing tag.
Any one of these is enough to make Google fall back to its own judgement about which page to show, undoing the whole point of setting hreflang up.
Tip
Check that your hreflang URLs point at the canonical version of each page, not a parameter-laden or redirecting variant. A hreflang link to a URL that itself 301s elsewhere is treated as broken, even though the alternate content technically exists.
How to check hreflang across a whole site
Hreflang can't be spot-checked page by page. The reciprocity requirement means every page in a cluster has to be checked against every other page in that cluster, which is exactly the kind of cross-referencing a manual review misses. A proper hreflang checker crawls the entire site, builds each cluster from the annotations it finds, and flags any page whose tags don't reconcile with the pages they name.
Crawl Cove does this as part of a normal crawl. There is no URL cap on any paid plan, and Max pages ships at 500 a crawl and you can raise it to 100,000. Once you raise it above its 500-page default it can map hreflang clusters across an entire international site in one pass. It reads hreflang from all three places Google accepts it: the page <head>, the HTTP Link header (the only option for a PDF) and the XML sitemap, so a site that declares its sets only in the sitemap is checked too. For every indexable page it flags invalid codes, a missing self-reference, alternates that point at a page returning an error, a redirect or noindex, an alternate whose canonical names a different URL, one code claimed by two URLs, a missing x-default, and any alternate on the site that doesn't link back. Each finding names the pages involved and gives a plain-English fix, rather than a raw list of tags to decode by hand. Crawls run locally on your own machine, and versioned audits let you confirm a cluster is fully reciprocal again after you fix it.
A crawl stays on one site, so reciprocity is checked between the pages it crawled. If your clusters span ccTLDs or subdomains, the alternates on the other domain are read but not validated. For those pages, run the free single-URL hreflang checker: it fetches up to 20 alternates wherever they live, checks each one links back, and also flags a missing x-default and alternates whose canonical names a different URL.
For the wider technical foundations hreflang sits on top of (canonicalisation, crawl budget and indexing), see our technical SEO guide. If international targeting is one issue among several you're auditing, our site audit page covers how Crawl Cove approaches a full-site check, and pricing has the details on getting started.