Glossary · Technical SEO
Hreflang: Telling Google Which Language Version to Show
Hreflang is an annotation that links the language and country versions of a page together. Get it right and the French visitor lands on the French page.
Hreflang is an annotation that tells Google about the different language or regional versions of the same page. It helps Google show searchers the version that matches their language and location. Each version must list itself and every other version, using ISO language codes and, optionally, ISO country codes.
Key Takeaways
- Each version of a page must point to every other version, and to itself.
- Use ISO 639-1 language codes and optional ISO 3166-1 country codes, such as en-gb, not en-uk.
- Add an x-default entry for visitors who match none of your versions.
- Hreflang helps Google pick the right version. It does not raise a page's rankings.
A shop sells to the US and the UK with the same English page and two prices. A British searcher lands on the dollar page, finds the wrong shipping rules and leaves.
Hreflang exists to prevent that mismatch. It is a small piece of markup with strict rules, and most errors come from breaking one of them.
How the markup works
You can declare the alternates in the page head, in HTTP headers or in your XML sitemap. Pick one method per page and stay with it. Each entry names a language, optionally a region, and the full URL of that version.
| Version | hreflang value | URL |
|---|---|---|
| US English | en-us | /us/pricing |
| UK English | en-gb | /uk/pricing |
| French | fr | /fr/tarifs |
| Fallback | x-default | /pricing |
Illustration of a four-version set.
The return rule matters most. If the US page lists the UK page, the UK page must list the US page back. Google's documentation says versions that do not confirm each other can be ignored.
Codes and common slips
Language comes first, region second. en-gb means English for Great Britain. en-uk is not a valid code, and the typo is among the most common in the wild. Use the full absolute URL, including the protocol, and make sure each URL is the canonical one and returns a 200 status. A hreflang pointing at a redirect or a noindex page breaks the set.
Our canonical tag and HTTP status codes entries explain why the targets must be clean.
Are the wrong country pages showing in your results?
Send your URL. We check this on your site and reply with the first fixes.
When you need it, and when you do not
Use it when you have real alternates: translated pages, or same-language pages with different currencies or rules. Do not use it for a single-language site that only wants to rank in several countries. Hreflang is not a targeting switch, and it does not translate anything.
Machine translation left unreviewed is a separate risk. Google's spam policies treat auto-generated content made to manipulate rankings as abuse, so review translated pages as you would any page. Our country pages show how we separate markets.
A short audit routine
Crawl the site and export every hreflang annotation. Check four things: each page lists itself, each listed page returns 200, the return links exist and the language codes are valid. Most large sets break on the return rule after a redesign or a migration, when one version moves and its partners still point at the old address.
Rerun the crawl after every release that touches templates or URLs. Search Console's international targeting data is limited, so your own crawl is the reliable check. Keep a spreadsheet of markets, URLs and owners so changes stay coordinated.
FAQ
Hreflang: questions people ask
What is hreflang?
An annotation that links the language and regional versions of a page so Google can show the right one.
Does hreflang improve rankings?
No. It helps Google choose between versions you already have.
What is x-default?
A fallback entry for visitors whose language or region matches none of your versions.
Why must hreflang be reciprocal?
Google ignores annotations that the other version does not confirm.
Is en-uk correct?
No. The code for Great Britain is en-gb.
Want a technical review you can act on?
Our monthly audit finds the issues that matter first.
How we wrote this page
Chenthil Kumar wrote this entry from the sources listed below and from audit work on client sites, and the Digimarketlabs Editorial Team checked it against our editorial guidelines. Figures carry a source and a date, and where a study shows correlation only, we say so. Search features change often, so check the linked documentation before you act on a detail. Last updated October 23, 2026.
Sources & further reading
Keep reading