Guide

What Is Hreflang and When Should You Use It?

If your website targets users in multiple countries or languages, hreflang is one of the most important technical SEO tools available to you. It is an HTML attribute — or an equivalent HTTP header or XML sitemap tag — that tells Google which version of a page is intended for which language or regional audience.

Without hreflang, Google may show the wrong language version of your page to the wrong users. A German speaker might see your English page, or a UK visitor might see your US-centric pricing. Hreflang solves this by giving Google a clear map of your international content.

How Hreflang Works

Hreflang tags use language and optionally regional codes to identify each version of a page. A tag reading hreflang="en-gb" signals that the page is in English and intended for users in Great Britain. A tag of hreflang="en-us" targets English speakers in the United States. A tag of hreflang="fr" targets French speakers regardless of country.

Each page in your international set must reference all other versions, including itself. If you have English, French, and German versions of a page, all three pages must contain hreflang tags pointing to all three URLs — including a self-referencing tag on each page. Google uses this reciprocal structure to validate the hreflang implementation.

When You Actually Need Hreflang

You need hreflang when you have the same or very similar content in multiple languages, or when you target the same language in different regional versions — for example separate sites for UK and Australian English-speaking audiences. If your site is entirely in one language targeting one region, hreflang is unnecessary.

A common situation for UK businesses is having an English site that also wants to rank in Ireland, Australia, or New Zealand. Without hreflang, Google may consolidate these pages incorrectly or serve the wrong version to users in different countries. Hreflang makes your intent explicit and helps Google serve the most relevant version.

Common Hreflang Mistakes

The most frequent error is incomplete implementation — adding hreflang to some pages but not others, or forgetting to include the self-referencing tag. Another common problem is pointing hreflang tags to pages that redirect or return errors. Every URL referenced in a hreflang tag must return a 200 status code.

Language codes must match the ISO 639-1 standard and region codes must match ISO 3166-1 alpha-2. Using incorrect codes — like "uk" for the United Kingdom (which is actually the code for the Ukrainian language) — will cause your hreflang implementation to fail silently. Always use "en-gb" for British English, not "en-uk".

FAQs

Common questions.

Does hreflang affect rankings in all countries?
Hreflang is a signal, not a guarantee. It helps Google understand which version to serve in each market, but other factors — domain authority, backlinks, content quality, and local signals — still influence rankings country by country.
Should I use hreflang in the HTML head, HTTP headers, or sitemap?
All three methods are supported by Google. HTML head tags are the most common and easiest to validate. Sitemap implementation is useful for large sites where editing every page's HTML is impractical. HTTP headers work for PDFs and other non-HTML files. Choose whichever method your CMS makes most reliable to maintain.
What is the x-default hreflang value?
The x-default value specifies the fallback page to show when no other hreflang value matches the user's language or region. Typically this points to a language selector page or your default language version. It is optional but recommended for sites targeting multiple regions.
Related guides

More on web design & ux.

Want a hand putting this into practice?

Book a free, no-obligation consultation with a Norwich-based specialist.

Book a free consultation
Get started

Let's put your business in a better light.

Book a free, no-pressure consultation. We'll talk through your goals and tell you honestly what we'd do — whether you work with us or not.

  1. 01
    Tell us a bitFill in the form — two minutes, tops.
  2. 02
    We'll call you backWithin one working day, no pressure.
  3. 03
    Get a clear planHonest advice and a fixed quote.

Free · No obligation · We reply within one working day

Book a free consultation