}
Hreflang is an annotation that tells Google which language and country each version of a page is written for, so that a buyer in Dublin sees your Irish page, a buyer in Lyon sees your French page and a buyer in Leeds sees your UK page. It works only when every version lists all the others and itself, with valid codes such as en-GB, en-IE and fr-FR, and an x-default for everyone else.
This guide is written for UK companies that sell into Ireland and the rest of Europe, often with separate English versions for the UK, Ireland and the United States. It covers the codes you need, the three ways to add the tags, how x-default and canonical tags fit in, what hreflang cannot do for you and how to find the errors that stop it working.
In this article
Hreflang is a value used with rel="alternate" links that tells search engines a page has equivalent versions in other languages or for other countries, and which audience each version is for. Google describes it in its documentation on localised versions of your pages.
Each annotation pairs a URL with a code. The code is a language, such as fr for French, which can be followed by a country, such as fr-BE for French speakers in Belgium. The full set of annotations for one page and its equivalents is usually called an hreflang cluster. When the cluster is correct, Google can swap in the right URL for each searcher, based on their language and location.
A buyer searching from Cork and one searching from Manchester can both see your product page, each in the version written for their market.
Hreflang helps Google choose which of your equivalent pages to show to a given searcher. It does not improve rankings, and it does not tell Google what language a page is written in.
Google states that it detects the language of a page with its own algorithms and does not use hreflang or the HTML lang attribute for that. A page written in English with hreflang="de" is still an English page. Hreflang is a hint about how URLs relate to each other, and Google weighs it against other signals such as the language of the text, internal links and canonical tags. If those signals contradict each other, Google may ignore the annotations in part or in full.
Hreflang also cannot rescue a weak page. If your German page sits on page three in Germany, correct tags will not lift it to page one. They stop the wrong version from appearing, for example your UK page with prices in pounds showing to a searcher in Dublin when an Irish page with prices in euro exists. Ranking in another country still depends on content written for that market.
No. Hreflang does not geolocate visitors or move them between versions of your site. It only influences which URL Google shows in its search results.
Once someone clicks a result, hreflang has done its job. If a visitor in Dublin lands on your UK page through a link on social media, a newsletter or another website, nothing in the hreflang tags sends them to the Irish version. The same goes for visitors who type your domain directly. To help those people you need visible navigation, such as a country or language selector in the header, and pages that make clear which market they serve.
Hreflang does not replace local content either. A page tagged en-IE that repeats the UK text with "UK" swapped for "Ireland" gives Google very little reason to treat it as a distinct page. Irish buyers expect prices in euro, VAT shown the Irish way, delivery times and costs from Great Britain after Brexit, returns terms and a contact route that works for them. Those details make the version useful, and they also help Google tell the two pages apart.
A UK company needs hreflang as soon as the same page exists in more than one language or regional version, such as a UK English site plus an Irish, French or German version. A site in one language for one market does not need it.
The typical moment comes when a business starts selling abroad seriously. An engineering firm in the Midlands adds /de/ and /fr/ folders for distributors in Germany and France. An online shop that sells in pounds opens an Irish store in euro. A software company with a US office splits its English content into en-GB and en-US because pricing, spelling and legal terms differ. In each case Google sees several pages about the same thing, and hreflang tells it which one belongs to which audience.
Before adding any tags, settle the structure. Country domains, subfolders and subdomains each have consequences for how you manage hreflang.
Each hreflang value starts with a two-letter language code from ISO 639-1, optionally followed by a hyphen and a two-letter country code from ISO 3166-1 alpha-2. Google supports only codes from those two standards.
Google treats the codes as case-insensitive, but the usual convention is a lower case language and an upper case country, as in en-GB. Following it makes your files easier to read and to audit.
The UK code is en-GB because ISO 3166-1 assigns GB to the United Kingdom. A value of en-UK is not valid, and Google states that using UK, EU or UN in hreflang annotations has no effect on Search.
This is one of the errors we find most often on British sites, usually because a developer or a plugin wrote the code by hand. The page looks fine, the tags look plausible, and Google quietly ignores them. GB covers Northern Ireland as well, since the ISO code refers to the whole United Kingdom.
There is no hreflang value for Europe as a whole either. A pan-European English page is served by en on its own, or by x-default.
You need separate en-GB and en-IE pages only when the two versions differ in ways that matter to the buyer, such as currency, VAT, delivery or contact details. If one English page serves both countries well, a single version tagged en is enough.
Many UK companies split too early. They create an Irish version that is a copy of the UK site, with the same prices in pounds and the same British phone number, and tag it en-IE. Google may treat those two pages as duplicates, because its documentation says localised versions are only considered duplicates when the main content remains untranslated, and two English pages with almost the same text fall close to that line. The result is often that Google picks one of them and the other version gets little visibility of its own.
If you do split, make the Irish version Irish. Show prices in euro, explain VAT and any customs charges clearly, give delivery times from your warehouse, add an Irish phone number or contact route if you have one, and use examples and case studies from Irish customers. Small changes in spelling are not enough on their own, since British and Irish English are close.
Many companies end up with three English versions: en-GB for the UK, en-IE for Ireland and en or en-US for everyone else. That set works well when each version has real local content behind it.
Most UK companies selling in Europe need en-GB for the home market, en-IE if Ireland has its own version, and a language code for each main European market, with a country added only where the offer changes by country.
| Market | Typical code | When to add a country code |
|---|---|---|
| United Kingdom | en-GB | Always, if you also have other English versions |
| Ireland | en-IE | When prices, VAT, delivery or contacts differ from the UK |
| United States | en-US | When pricing, spelling or legal terms differ from the UK |
| France and French-speaking Belgium | fr, or fr-FR and fr-BE | When distributors, prices or contacts differ by country |
| Germany, Austria and Switzerland | de, or de-DE, de-AT and de-CH | When shipping, prices or legal details differ |
| Netherlands and Flemish Belgium | nl, or nl-NL and nl-BE | When the Belgian offer is distinct |
| Spain | es-ES or es | Use es on its own if the page also serves Latin America |
| Everyone else | x-default | Always worth adding to the cluster |
The two levels can work together. You can list fr-FR and fr-BE for country pages and add fr for a general French version that catches French speakers in Switzerland, Luxembourg or Canada. Our guides on selling in France and selling online in Germany explain what those country pages need to contain.
x-default is a reserved hreflang value for searchers whose language or country does not match any of your versions. It usually points to a language or country selector, or to your international English page.
Google describes x-default as the fallback used when no other language or region matches the user's browser setting. For a UK company with en-GB, en-IE, fr and de versions, a searcher in Sweden or Poland matches none of them. Without x-default, Google picks whichever version it judges best. With it, you decide.
The right target depends on your site. If you have a general English version written for international buyers, point x-default there. If your home page is a selector where visitors choose their country, point x-default to the selector. Avoid pointing it at the en-GB page by habit, because a buyer in Denmark then sees prices in pounds and UK delivery terms. x-default must appear in every page of the cluster, with the same URL each time.
You can add hreflang with link elements in the HTML head, with HTTP headers or in an XML sitemap. Google says the three methods are equivalent, so choose the one your platform can keep accurate over time.
Pick one method per set of pages. Mixing methods doubles the places where errors can hide.
An HTML example is a block of link elements in the head, one for each version including the current page, plus x-default. The identical block goes on every page in the cluster.
This is the block for a product page that exists for the UK, Ireland, France and Germany.
<link rel="alternate" hreflang="en-GB" href="https://www.example.co.uk/products/pump-x/" />
<link rel="alternate" hreflang="en-IE" href="https://www.example.co.uk/ie/products/pump-x/" />
<link rel="alternate" hreflang="fr" href="https://www.example.co.uk/fr/produits/pompe-x/" />
<link rel="alternate" hreflang="de" href="https://www.example.co.uk/de/produkte/pumpe-x/" />
<link rel="alternate" hreflang="x-default" href="https://www.example.co.uk/international/" />
All URLs are absolute, with the protocol and the domain. Each one must be the indexable version of the page, written exactly as it resolves, with or without the trailing slash. A URL that redirects, returns an error or carries a noindex tag breaks that part of the cluster.
Every page in a cluster must link to every other page, and each page must also list itself. Google states that if two pages do not both point to each other, the tags will be ignored.
In practice the rule catches your own mistakes. The UK page lists the Irish page, but the Irish page was published later from a template that lists only en-GB and fr. The UK to Ireland pair then fails, and Google may keep showing the UK page in Ireland.
The self-reference is the other half. The UK page should include a line with hreflang="en-GB" pointing to itself. The simplest way to get both right is to generate the block from one shared list of versions and print the same block on every page.
Each language or country version should carry a self-referencing canonical, and hreflang should point only to canonical URLs. A version that canonicalises to another version drops out of the cluster.
The classic mistake is to set the canonical of the Irish page to the UK page because "the content is almost the same". That tells Google the Irish page is a duplicate of the UK one, while the hreflang tells it the Irish page is a separate version for Ireland. Google receives two opposite signals and usually follows the canonical, so the Irish page stops appearing.
Avoid automatic redirects based on IP address or browser language. Google's guidance on managing multi-regional and multilingual sites advises against them, because they can stop users and crawlers reaching the other versions.
The same guidance notes that Googlebot usually crawls from the United States. A site that sends every US visitor to the en-US version may stop Google from seeing the en-GB and en-IE pages at all. The same thing happens to people: a British buyer travelling in Dublin is pushed to the Irish store and cannot get back to the UK prices they need.
The better approach is to suggest instead of forcing. Show a discreet banner that says "It looks like you are in Ireland. Visit our Irish site?", remember the choice, and keep the selector visible in the header. Hreflang sorts out the search results, and the banner helps the visitors who arrive by other routes.
Most hreflang errors come from invalid codes, missing return links and URLs that do not resolve cleanly. These are the ones we find most often when we audit British sites that sell abroad.
A full technical review usually brings these to light together.
Check hreflang with a crawler that reads the annotations and reports missing return links, invalid codes and non-indexable targets, then confirm a sample of pages by hand. Search Console no longer has the dedicated international targeting report it once offered.
A desktop crawler such as Screaming Frog can extract hreflang from the HTML, the sitemap or the headers and list each problem by page. Run it on every version, compare the clusters, and fix the template or the generator when an error repeats across many pages.
Then look at the results the way a buyer does. Use the URL Inspection tool in Search Console to see which canonical Google has chosen for each version, and check the Performance report filtered by country: if Irish searches still land mostly on UK URLs, something in the cluster is not working. After any fix, allow a few weeks before judging, because Google has to crawl every page in the cluster again.
If you manage several domains or more than three languages, the work is easier with a partner who knows each market. Our multilingual SEO agency sets up and monitors hreflang alongside native-language content, and you can read how we approach multilingual SEO across Europe or see the wider service of our international SEO agency.
No. Hreflang does not improve the position of a page in the results. It helps Google choose which of your equivalent pages to show to a searcher in a given language and country. If your Irish or French pages rank poorly, the cause lies in content, links or technical issues, and hreflang will not change that. What it does is stop the wrong version from appearing when a better one exists.
Use en-GB. Hreflang country codes come from ISO 3166-1 alpha-2, where the United Kingdom is GB. Google states that UK, EU and UN have no effect in hreflang annotations, so a tag written as en-UK is silently ignored. The en-GB code covers the whole United Kingdom, Northern Ireland included. Check plugins and templates as well, because the wrong code is often generated automatically.
No. Hreflang only affects which URL Google shows in its search results. It does not read the visitor's IP address and does not move anyone between versions once they are on your site. Visitors who arrive from links, emails or social media need a visible country or language selector, and a suggestion banner is safer than an automatic redirect, which Google advises against.
Only if you have more than one English version aimed at different countries, such as en-GB, en-IE and en-US. A single English site for every market does not need hreflang. If you do create country versions, give each one real local content, such as currency, VAT, delivery terms and contacts, or Google may treat the pages as duplicates and show just one of them.
x-default should point to the page that serves people whose language or country you do not cover. For most companies this is a country selector or an international English version written for buyers outside the UK and Ireland. Avoid pointing it at the UK page by default, unless the UK page works for a buyer in Sweden or Poland. Use the same x-default URL on every page of the cluster.
It depends on how often Google crawls your pages. Because return links must be confirmed on both sides, Google needs to recrawl every page in a cluster before the change takes full effect. On a well-linked site with a clean sitemap, changes often show within a few weeks. On large sites with deep pages it can take longer. Check the country filters in Search Console to see when the right URLs start appearing.
A small site with two or three versions can set up hreflang in-house, especially on a CMS with a reliable multilingual plugin. It becomes harder with several domains, translated slugs, PDF files or frequent changes, where one broken template affects hundreds of pages. In those cases an audit by a specialist saves time, and the tags are best managed together with the local content they point to.