Hreflang explained: the right page for each country

Hreflang is a label that tells search engines which version of a page is meant for which language or country. A site with several versions and no labels leaves the search engine to guess, and customers in one country are shown prices, spelling or stock meant for another.

Updated

This guide, surveyed at release eab6db0 on 19 October 2026: words per section.

Each sounding opens its section

  1. 01 What hreflang does 44 words
  2. 02 When a site needs it 53 words
  3. 03 How the codes work 88 words
  4. 04 Where the labels go 46 words
  5. 05 The five mistakes 117 words
  6. 06 How to check yours 86 words
  7. 07 Questions people ask 125 words
  8. 08 Free competitor gap report 105 words
  9. 09 More guides 32 words
Words
696
Site 366–1,117 · median 749.5
Sections (H2)
9
Site 3–14 · median 9
Internal links
7
Site 1–36 · median 19
File
70.3 kB
HTML, uncompressed · of 83.6 kB budget · 0 scripts

Sheet

056 of 126

Release eab6db0

Standard 49 · 101 checks

What hreflang does

A site that sells in several countries usually has several versions of the same page. Hreflang lists those versions and labels each with a language and, optionally, a country. When someone searches, the search engine shows the version labelled for them.

When a site needs it

Hreflang is needed in three cases.

  • The same content is translated into different languages.
  • The same language is aimed at different countries, such as British and American English with different prices or spelling.
  • The site mixes both.

A site with one version for everyone does not need it.

How the codes work

Each label is a language code, optionally followed by a country code.

  • en is English, anywhere.
  • en-GB is English in the United Kingdom.
  • fr-CA is French in Canada.

The language part comes from the ISO 639-1 list and the country part from ISO 3166-1. A country cannot stand alone: GB with no language is not a valid label.

One further value, x-default, names the page for everyone the other labels do not cover. It is often a language chooser or the main international version.

Where the labels go

The labels can live in three places, and one is enough: link elements in the head of each page, the XML sitemap, or HTTP headers for files such as PDFs. On a large site the sitemap is the easiest to keep correct.

The five mistakes

Most hreflang that fails does so for one of five reasons.

  1. No return link. If the British page names the American page, the American page must name the British one. A one-way label is ignored.
  2. No self-reference. Each page’s list of versions should include the page itself.
  3. Wrong codes, such as en-UK for en-GB, or a country with no language.
  4. Labels that point at addresses which redirect, are blocked or carry a noindex instruction. Each address must be the final, indexable one.
  5. Canonical tags that disagree. If every version names one master page as its canonical, the search engine treats the others as copies and discards the labels. Each version’s canonical should be itself.

How to check yours

Open a page that has other-country versions, view its source and search for hreflang. Each address listed should load without redirecting, and its own source should list the first page in return.

Then read Search Console’s Performance report with the country filter set to one of your markets and look at the Pages tab. The addresses shown are the versions Google is serving there. An American page appearing for searches from the United Kingdom means the labels are missing or being ignored.

Questions people ask

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

Only if the site has separate versions for different English-speaking countries, such as one for the United Kingdom and one for the United States. A single English site for everyone needs none.

Is the hreflang code for the UK en-UK or en-GB?

The code is en-GB. Hreflang takes its country codes from an international standard, and the United Kingdom's code there is GB. A label written en-UK is invalid, and search engines ignore it.

Does hreflang improve rankings?

Hreflang does not raise a page's position. It swaps in the right version for each searcher, so the visit lands on a page in their language, with their currency and their delivery terms.

Free competitor gap report

International search works one market at a time. Name up to three competitors in the countries you sell to and we measure how their sites are set up for each market beside yours, then send you where the structure is costing you.

  1. Speed and technical health, side by side
  2. On-page SEO and site structure
  3. The content they are found for and you are not
  4. Who holds the searches that matter in your market
  5. A prioritised list of what to fix first
Request your free report by email
Address
contact@hadalmedusa.com
Include
your site; up to three competitors; where you compete