🍪We use cookies!

This website utilizes cookies to enable essential site functionality, as well as for analytics, personalization, and targeted advertising. You may change your settings at any time or accept the default settings.

CaptivateClick
  • Home/
  • Services/
    Website Design
    • Web designResponsive sites built to convert.
    • Branding & identityBrand identity, logo and visual system designed to stay distinctive and consistent as you grow.
    • E-commerceWebshops built to sell.
    • Shopify agencyShopify stores that sell.
    • Landing pagesCampaign and offer pages.
    Lead Generation
    • Cold emailRelevant outreach that starts conversations.
    • LinkedIn outreachSocial selling with a human voice.
    • Appointment settingQualified B2B meetings in your calendar.
    • ProspectingThe right companies, people and timing.
    SEO
    • Technical SEOHelp Google discover, read and index the right pages.
    • Local SEOMaps and local visibility.
    • SEO auditSee what holds you back and what to fix first.
    • Get found on GoogleHelp customers find your business.
    Advertising
    • Ad reviewLanding page for your ad sends.
    • Google AdsGoogle Ads and SEM built around high-intent searches, qualified conversions and measurable revenue.
    • Meta AdsFacebook and Instagram campaigns built around creative testing, clean signals and profitable scale.
    • LinkedIn AdsB2B campaigns built around account targeting, buying committees and qualified pipeline.
    AI Automation
    • AI agentsAgents that do the work.
    • Xero & QuickBooks integrationXero and QuickBooks connected to your systems.
    • HubSpot automationsHubSpot pipeline automation.
    • System integrationSystems that share the same data.
    AI visibility
    • AI checkFree AI visibility check.
    • Answer engine optimisationBecome the answer AI cites.
    • GEO SEOShow up in AI-generated answers.
    • AI search (guide)Guide: what AI search is and what it means.
    See all services
  • Projects/
    • Climentum CapitalWeb designView case
    • Nordic Acceleration GroupWeb designView case
    • NorthforkWeb designView case
    • Hawkeye AdvertisingWeb designView case
    All projects
  • About Us/
  • Blog/What Is Hreflang
  • Contact/
CaptivateClick

Navigation

  • Home
  • Services
  • Projects
  • About Us
  • Blog
  • Contact
  • Privacy Policy

Services

  • Website Design
  • Lead Generation
  • SEO
  • Advertising
  • AI Automation
  • AI visibility

Website Design

  • Web design
  • Branding & identity
  • E-commerce
  • Shopify agency
  • Landing pages

Lead Generation

  • Cold email
  • LinkedIn outreach
  • Appointment setting
  • Prospecting

SEO

  • Technical SEO
  • Local SEO
  • SEO audit
  • Get found on Google

Advertising

  • Ad review
  • Google Ads
  • Meta Ads
  • LinkedIn Ads

AI Automation

  • AI agents
  • Xero & QuickBooks integration
  • HubSpot automations
  • System integration

AI visibility

  • AI check
  • Answer engine optimisation
  • GEO SEO
  • AI search (guide)
© 2026 CaptivateClick

Blog

What is hreflang? How to show Google the right language version

October 8, 20265 min read
An old globe with blue seas and orange continents against a turquoise background, an image of websites in several languages

On this page

  • Who needs hreflang?
  • How to write hreflang
  • The rules that must be right
  • English: en, en-GB or en-US?
  • How we do it on our own site
  • The most common mistakes
  • URL structures for several languages
  • Frequently asked questions
  • Sources

Short answer: hreflang is a code that tells Google a page exists in several language or country versions, and which version belongs to which audience. Google can then show the British page to someone searching in the UK and the American page to someone in the US, or the Swedish page to a Swedish searcher. Each version must point to itself and to every other version, or the tags are ignored.

In brief

Hreflang is written as link tags in the page code, as HTTP headers or in the sitemap. The language code follows ISO 639-1, such as en or sv, and can be combined with a country, such as en-GB. The value x-default sets which version shows when nothing else fits. Two in three sites with hreflang have at least one error, most often a missing x-default or missing return links. For English-language sites aimed at several countries, hreflang is what separates en-GB from en-US.

Contents

  1. Who needs hreflang?
  2. How to write hreflang
  3. The rules that must be right
  4. English: en, en-GB or en-US?
  5. How we do it on our own site
  6. The most common mistakes
  7. URL structures for several languages

Who needs hreflang?

You need hreflang if the same content exists in several languages, such as English and Swedish versions of your service pages, or if you have versions for different countries in the same language, such as British and American English. If your site only has one language, you do not need it.

Without hreflang, Google may show the wrong version, for example the American page with dollar prices to a British searcher, or treat the versions as competing duplicates.

How to write hreflang

There are three equivalent methods (Google Search Central):

  1. Link tags in the page head. The most common for ordinary web pages.
  2. HTTP headers. Used for non-HTML files such as PDFs.
  3. The sitemap. Practical for large sites, because the code does not need to sit on every page.

This is what the link tags look like for a page in British English and Swedish:

<link rel="alternate" hreflang="en-GB" href="https://example.co.uk/services" />
<link rel="alternate" hreflang="sv" href="https://example.co.uk/sv/tjanster" />
<link rel="alternate" hreflang="x-default" href="https://example.co.uk/services" />

The same three lines must appear on both the English and the Swedish page.

The rules that must be right

  • Every version lists itself and all the others. If the English page points to the Swedish one, the Swedish page must point back (Google Search Central).
  • Full URLs with https://, not relative paths.
  • Correct codes. First the language in ISO 639-1, then optionally the country in ISO 3166-1, such as en, en-GB or sv-FI. A country without a language is invalid, and the United Kingdom is GB, not UK (Google Search Central).
  • x-default sets which version shows when no other matches the searcher's language (Google Search Central).
  • Only point to pages that work and are canonical, not to redirects or error pages.

One important detail: Google does not use hreflang or the lang attribute to work out what language a page is written in. It does that from the visible content (Google Search Central). Hreflang only helps Google choose the right version. Bing, which handles about 6 percent of UK searches (StatCounter), is said to rely mainly on the content-language tag, so it can be worth adding (Search Engine Roundtable).

English: en, en-GB or en-US?

  • One English version for everyone: use en. It covers all English speakers regardless of country.
  • Separate British and American versions, for example with prices in pounds and dollars or different spelling: use en-GB and en-US, and consider en as the fallback for other English speakers.
  • Never write en-UK. It is invalid, and Google ignores it.

A UK version should also look British: pounds, UK spelling, UK contact details and VAT. Hreflang points Google to the right page, but the content is what convinces the visitor.

How we do it on our own site

Our website exists in several languages, so we have had to solve this ourselves:

  • Blog posts that exist in English, Swedish and Norwegian, like this one, are separate posts with their own URLs and their own keywords for each market. They point to each other with hreflang.
  • Posts that only exist in one language list only that language. Pointing to a page that does not exist is one of the most common mistakes.
  • The sitemap lists the language versions for blog posts, so Google gets the information from there too.
  • The URLs are translated. The Swedish version of this article is /sv/blogg/vad-ar-hreflang and the Norwegian one /no/blogg/hreflang.

Everything is generated automatically from the same data that controls which pages exist in which language. That means the tags cannot be forgotten when a page or language is added.

The most common mistakes

Ahrefs studied nearly 375,000 domains with hreflang and found that 67 percent had at least one error (Ahrefs):

ErrorShare of domains
Missing x-default56.3%
Page does not reference itself18%
Points to broken or redirected pages16.9%
Missing return links15.3%
Points to non-canonical pages8%
Invalid language or country codes4.6%

Another common mistake is automatically redirecting visitors to another language version based on browser settings. Google advises against it, because both visitors and Google may struggle to reach all versions (Google Search Central). Show a clear language switcher instead.

URL structures for several languages

Google describes four ways to structure a multilingual site (Google Search Central):

StructureExampleComment
Country domainexample.co.ukClearest for one country, but more domains to manage
Subdomainuk.example.comEasy to separate technically
Subfolderexample.com/en-gb/Easiest to manage, one domain gathers all authority
Parameterexample.com?lang=enNot recommended by Google

Also keep one language per page, both in content and navigation, rather than translations side by side (Google Search Central). The basics of how Google finds and chooses pages are in What is SEO? and Google indexing.

Taking your site into more markets?

We build multilingual websites with the right URLs, hreflang and sitemaps from the start, so every market sees the right version.

Read about technical SEO

Frequently asked questions

What is hreflang?

Hreflang is a code that tells Google a page exists in several language or country versions, and which version belongs to which audience. Google can then show the right version to the right searcher.

Do I need hreflang?

Yes, if the same content exists in several languages or you have versions for different countries in the same language, such as British and American English. A single-language site does not need it.

What is x-default?

x-default is a reserved hreflang value that sets which version to show when none of the other language versions matches the searcher's language.

What is the hreflang code for the UK?

en-GB. The country code for the United Kingdom is GB, not UK, so en-UK is invalid and ignored by Google. Use en on its own for one English version for all countries.

Why are my hreflang tags not working?

The most common reasons are that pages do not point back to each other, a page does not reference itself, x-default is missing, tags point to redirected or broken pages, or the language codes are invalid.

Sources

  1. Tell Google about localized versions of your page, Google Search Central
  2. Managing multi-regional and multilingual sites, Google Search Central
  3. Hreflang study, Ahrefs
  4. Bing on the content-language meta tag, Search Engine Roundtable
  5. Search engine market share United Kingdom, StatCounter
PreviousCore Web Vitals explained: LCP, INP and CLS, and how to improve page speed
NextHow long does SEO take? Realistic timelines, and is SEO worth it?

Related Posts

  • Read the blog

    Google indexing: how to get your pages indexed, and why some aren't

    October 7, 20265 min read
    Read more
  • Read the blog

    What is SEO? Search engine optimisation explained in plain English

    October 7, 20265 min read
    Read more
  • Read the blog

    Core Web Vitals explained: LCP, INP and CLS, and how to improve page speed

    October 8, 20265 min read
    Read more
Let's get startedLet's get started

Ready to grow?

Let's talk about your project.

Trusted by 110+ businesses to grow online.

  • Mercer Consulting, Co.
  • Mercer Consulting, Co.