Part of our guide: Doing business across the UK and US: a practical guide ›
If your website has separate versions for different countries, such as a UK page priced in pounds and a US page priced in dollars, you want Google to show British searchers the UK page and American searchers the US one. Without help, it often gets this wrong. Visitors land on the version with the wrong prices, phone numbers and spelling, and many leave.
Hreflang is the standard way to tell search engines which version of a page is meant for which language and country. This guide explains it in plain English, with the exact codes for UK and US sites.
The short version
- Hreflang tags tell search engines that pages are equivalents for different languages or countries.
- For British and American English, use en-GB and en-US.
- Every version must list every other version, and itself.
- Add an x-default for visitors who don't match any version.
- Each page should have a canonical tag pointing to itself, not to the other country's version.
What hreflang does, and doesn't do
Hreflang doesn't make a page rank higher. It helps search engines swap in the right version for each searcher, among pages that would rank anyway. It also tells them that near-identical pages for different countries are intentional, not duplicate content.
Google uses hreflang. Bing relies more on other signals, such as the language attribute on the page and the content itself, so it's worth getting those right too.
The codes
Each hreflang value has a language code and, optionally, a country code. The language comes first, in lower case, then the country, in upper case by convention.
| Code | Meaning |
|---|---|
| en-GB | English for the United Kingdom (note: GB, not UK) |
| en-US | English for the United States |
| en | English for anyone, any country |
| x-default | The page to show when no other version matches |
A very common mistake is using 'en-UK'. UK isn't the official country code. The correct one is GB, and en-UK will be ignored.
How to add hreflang
There are three ways to add hreflang: tags in the page's head section, HTTP headers, or entries in your XML sitemap. Tags in the head are the most common for normal websites. For a page that exists in UK and US versions, both pages would include these lines:
<link rel="alternate" hreflang="en-GB" href="https://example.com/uk/pricing/" />
<link rel="alternate" hreflang="en-US" href="https://example.com/us/pricing/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/pricing/" />The same block goes on every version of the page. Each version lists all the others and itself. If the UK page points to the US page but the US page doesn't point back, search engines ignore the pair.
If you have hundreds of pages, the sitemap method is often easier to manage, because all the hreflang information sits in one file. Many website platforms and SEO plugins can generate either method for you.
Using x-default
The x-default value tells search engines which page to show visitors who don't match any of your versions, such as someone in Canada or Australia. It's often a general international version, or a page that lets visitors choose their country. If you only have UK and US versions, you can point x-default at whichever one suits international visitors better.
Canonical tags
Each version should have a canonical tag pointing to itself. Don't point the UK version's canonical tag at the US page, or vice versa. That tells search engines the UK page is just a copy and should be dropped, which defeats the point of having it. Our technical SEO basics guide explains canonical tags in more detail.
Common mistakes
- Using en-UK instead of en-GB.
- Missing return links: page A points to page B, but B doesn't point back.
- Forgetting the self-referencing link on each page.
- Pointing hreflang at pages that redirect, return errors or are blocked from search.
- Canonical tags pointing to a different country's version.
- Hreflang on pages whose content isn't really different, such as identical text with no currency or contact changes.
A worked example
Say a bookkeeping firm has a UK services page at /uk/bookkeeping/ and a US version at /us/bookkeeping/. The UK page mentions VAT, Making Tax Digital and prices in pounds. The US page mentions sales tax, 1099s and prices in dollars. Both pages carry the same three hreflang lines: en-GB pointing to the UK page, en-US pointing to the US page, and x-default pointing to the UK page, because the firm's international clients are mostly in Europe. Each page's canonical tag points to itself. When someone in Leeds searches for 'outsourced bookkeeping', Google shows the UK page. When someone in Denver searches, it shows the US one. The firm only needs to make sure that whenever it adds a new service page in one country, it adds the other version and updates the tags on both.
Do you even need hreflang?
Only if you have separate versions of the same page for different countries or languages. If you run one website for both the UK and US with the same content, you don't need hreflang at all. Our guide to one website for two countries helps you decide whether to split.
Other international signals
- Set the language attribute on each page, such as lang="en-GB" on UK pages.
- Use local currency, phone numbers, addresses and spelling in the content itself.
- Earn links from websites in each country, such as local trade bodies and press.
- Set up a separate Google Business Profile for each physical location.
- Use a clear URL structure, such as /uk/ and /us/, so people and search engines can tell versions apart.
Checking it works
After adding hreflang, check a few pages by viewing the page source to make sure the tags are there and the URLs are right. Crawl the site with an SEO tool that reports hreflang errors, such as missing return links. In Google Search Console, watch the Performance report filtered by country: over a few weeks, UK searchers should see more of the UK URLs and US searchers the US ones. Search for your brand from each country, using a VPN if needed, to check the right version appears.
Frequently asked questions
Does hreflang help with Bing?
Bing gives hreflang much less weight than Google. Use the page's language attribute and clear local content as well.
Can I target a country without a separate page?
Not with hreflang. It only works between versions of a page. A single page can still rank in both countries if its content suits both.
How long does it take to work?
Usually a few weeks, as search engines recrawl both versions of each page.
Want your international setup checked?
We run technical SEO for sites that serve the UK and US. See our guide to doing business across the UK and US, or book a call.
See it in practice · FinTech
FinTech KYC review cut from 5 days to 4 hours
Curious how your own site scores?
Run our free website audit. Simple report, about 10 seconds, no sign-up.



