Skip to content

Hreflang tells Google which URL serves which language or region. This guide covers the three placements, valid codes, x-default, canonical conflicts and audits.

Hreflang is an annotation that tells a search engine which URLs are the language or regional versions of the same page, so each searcher is sent to the version written for them. It does not translate anything, detect a page's language, or improve rankings. Its one job is selection: when several near-equivalent URLs exist, hreflang helps Google choose the right one.

That job matters more in 2026 because AI answers also pick one URL to represent a set of near-copies, and the wrong regional version can be the one quoted. This guide covers the rules that make Google ignore hreflang, how to implement it, and how to audit it. Checked against Google Search Central's localized versions, multi-regional and canonicalization documentation on 6 December 2026.

What hreflang is — and what it is not

Google's documentation is blunt: if you have multiple versions of a page for different languages or regions, telling Google about the variations helps Search point users to the most appropriate version. Google recommends annotations for fully translated content, small regional variations in one language such as English for the US, GB and Ireland, and pages where only the template is translated.

Equally important is what hreflang does not do. Google does not use hreflang, or the HTML lang attribute, to detect a page's language; it uses algorithms on the visible content. A German page mislabelled en is still read as German — the annotation is simply wrong. Hreflang also does not force a redirect, replace a canonical tag, or make a weak translation rank. Treat it as labelling, not optimisation magic.

Why the wrong version now costs more

The classic cost is a UK searcher landing on a US page with dollar pricing. AI search adds a second failure mode. In December 2025, Microsoft's Bing team explained that large language models group near-duplicate URLs into a cluster and choose one page to represent the set — and if differences are minimal, the chosen version may be outdated or not the one you intended.

Bing's advice for localised pages was specific: make meaningful changes such as terminology, examples, regulations or product details, avoid same-language pages serving the same purpose, and use hreflang to define language and regional targeting. No AI platform publishes how much weight hreflang carries in retrieval, but AI Overviews and Copilot draw on the Google and Bing indexes, where it already shapes which version can be shown.

Multilingual, multi-regional, or both?

Google separates two cases. A multilingual site offers content in more than one language, such as English and French for Canada; Search matches the searcher's language. A multi-regional site targets different countries, such as a manufacturer shipping to Canada and the United States; Search finds the right locale page. Many sites are both, and hreflang covers both.

The distinction decides your codes: plain language codes such as de for language targeting, language-plus-region such as en-GB or de-CH for regional targeting. Only split a version when pricing, spelling, law, stock or examples genuinely differ. A separate en-AU page identical to en-GB apart from a flag is a near-duplicate, whatever its annotations say.

Step 1: Give every version its own URL

Google recommends different URLs for each language version rather than switching language on one URL with cookies or browser settings. A URL that changes language by IP address or Accept-Language hides versions from crawlers: Googlebot usually crawls from the USA without an Accept-Language header, so it may never see your French variant.

Country domains, subdomains and subdirectories all work; Google names no winner. Avoid parameters such as ?lang=de. Add visible language-switcher links, and do not auto-redirect visitors to a guessed language.

Step 2: Pick one of the three placements

Google accepts hreflang in HTML head tags, HTTP Link headers, or an XML sitemap, and says the three are equivalent. Using all three brings no benefit in Search and is harder to manage, so pick one method per page type.

MethodWhere it goesBest for
HTML tagslink rel="alternate" in the headMost sites; visible in source
HTTP headersLink: response headerNon-HTML files such as PDFs
Sitemapxhtml:link under each URLLarge sites generating sitemaps

HTML tags must sit inside a well-formed head, without combining hreflang with attributes such as media in one link tag. In sitemaps, declare the xhtml namespace and list every variant under every URL; child entries do not count towards the sitemap URL limit. Our XML sitemaps guide covers the underlying rules.

Step 3: Build the complete, reciprocal set

This rule breaks most implementations. Each version must list itself as well as all other versions, using fully qualified URLs including https:// — not //example.com/foo or /foo. The set is identical on every version, and alternate URLs need not share a domain.

Return links are mandatory: if two pages do not both point to each other, Google ignores the tags, so another site cannot claim to be a version of your page. Hreflang is therefore a cluster, not a tag — adding a language means updating every existing version. Generate the set from one locale list in your CMS or build process; hand-maintained clusters drift the first time a language changes.

Step 4: Use valid language and region codes

Values are a language code in ISO 639-1 format, optionally plus a region in ISO 3166-1 Alpha 2 format: de for German anywhere, en-GB for English in the UK, de-ES for German speakers in Spain. A region alone is invalid. Values are case-insensitive, though uppercase regions follow ISO convention.

Two traps catch experienced teams. Reserved codes such as EU, UN or UK are ignored by Google, so British English is en-GB, never en-UK. And the first code means language: be is Belarusian, not Belgium — Dutch for Belgium is nl-BE. Script variants such as zh-Hans and zh-Hant are supported where they matter.

Step 5: Add a catch-all and an x-default

If you target several regions in one language — en-IE, en-CA, en-AU — Google recommends also providing a generic en page for English speakers elsewhere; it can be one of the specific pages. Without a catch-all, a US searcher may be sent to the Irish version as the closest match.

Separately, x-default covers unmatched languages. Google recommends it especially for language selector pages, where it works best; it is a fallback, not a substitute for a generic version.

How hreflang interacts with canonical tags

The canonical says which URL represents a set of duplicates; hreflang says which localised version suits which audience. Google's canonicalization guidance is explicit: with hreflang, specify a canonical in the same language, or the best substitute if none exists. Normally, each version canonicalises to itself.

The classic failure is canonicalising every translation to the English original, telling Google to fold them away while hreflang asks for each to be shown — one signal loses. Annotating URLs that redirect or canonicalise elsewhere fails the same way. Annotate only final, indexable, self-canonical URLs. Our canonical tags guide explains how Google picks the representative URL when signals conflict.

Make each version genuinely local

Hreflang cannot rescue identical pages. Google treats localised versions as duplicates only if the main content remains untranslated, and Bing makes the same point for regional pages: nearly identical pages are duplicates whatever the annotations say. Translate the main content, not just navigation, and localise prices, units, examples and regulations where they differ.

Keep one language per page and avoid side-by-side translations. If a market does not justify a local page, do not create the URL.

How to measure whether it is working

No report proves hreflang success, so measure outcomes. In Search Console, compare performance by country for each version, and watch the Pages report for versions excluded as duplicates — a growing pile usually means canonicals and hreflang disagree. In analytics, segment organic landing pages by country and look for mismatches, such as UK traffic landing on US URLs.

Audit mechanically each quarter and after template changes: crawl a sample of each language and verify every version lists itself and all others, annotated URLs return 200 and are indexable, codes are valid, and canonicals self-reference. Include these checks in your technical SEO audit. Also sample AI answers in each target language and record which URL is cited — a sample, not a metric.

Common mistakes

  • Missing return links. The new language lists everyone; old pages never list it back.
  • Relative URLs. Hrefs must be fully qualified, including the protocol.
  • Invalid codes. en-UK and region-only values are silently ignored.
  • Canonicalising translations away. Every version canonical to English contradicts the cluster.
  • Annotating redirects or noindexed pages. Only final, indexable URLs belong in the set.
  • Auto-redirecting by IP or browser language. It hides versions from crawlers.
  • All three placements at once. No benefit, triple maintenance, conflicting sets.

Frequently asked questions

Does hreflang improve rankings?

Not directly. Hreflang helps Google show the correct language or regional version; it is a selection signal, not a ranking factor. The benefit is the right URL earning the click, with local pricing and spelling, instead of a near-duplicate from another market.

Do I need hreflang if my site is only in English?

Only if you run separate regional versions, such as en-GB and en-US pages with different pricing. A single English site needs no hreflang. Adding annotations for regions you do not genuinely serve creates duplicates rather than visibility.

Does Bing use hreflang?

Yes, on Bing's own guidance. In December 2025 the Bing Webmaster team told sites to use hreflang to define language and regional targeting. Bing has not published how heavily it weighs the annotation against other language signals.

What happens if my hreflang tags have errors?

Google ignores faulty annotations rather than penalising the site. Missing return links, invalid codes and relative URLs mean the cluster is not processed, so Google falls back on its own judgement — how the wrong regional version ends up ranking.

Should x-default point to my English homepage?

It can, but that is not its designed purpose. Google recommends x-default mainly for language selector pages, as the fallback for unmatched languages. If unmatched visitors should see English, also provide a generic en catch-all.

Final verdict

Hreflang is unglamorous plumbing with a clear payoff: the right version of each page, for each audience, in classic results and the indexes AI answers draw on. It will not lift a weak translation or thin regional copy. Start with your ten most valuable pages — own URL, complete reciprocal set, valid codes, self-canonical, catch-all — then generate the rest from one locale list.

Sources

Keep exploring

Browse all insights

Tell us what your business needs

Your project deserves
a practical plan.

Whether you need a website, a search strategy, campaign assets or an automated workflow, TechnSEO can help you define the work.