How to set up and check hreflang

Hreflang is a tag that tells Google which version of a page is for which language or country, such as US English and UK English. Google uses it to show searchers the right version. Give each version its own URL, and list the same set of hreflang tags on every version.

Does hreflang help Google show the right language version?

Yes. Hreflang helps Google find the version of a page meant for a given language or region. It points Google to the alternate URL but doesn’t guarantee a ranking boost.

High confidence. Strong evidence, or the platform says so in its own docs. Based on 2 sources: 2 official docs.

What to do

Give each language or regional page its own URL. Link each version to itself and to its counterparts with matching hreflang annotations.

On this page
  1. What to do
  2. When should you use hreflang?
  3. How to add hreflang tags (with an example)
  4. How to check your hreflang setup
  5. The evidence
  6. Related tactics

When should you use hreflang?

When you have versions of the same page for different languages or countries. Say your shoe fitting guide has a US English version with US sizes and a UK English version with UK sizes. Each one needs its own URL, so visitors can open or switch to it directly.

Only create separate versions when the differences matter to the reader. Keep the same purpose across versions, so someone switching languages lands on the same guide, not your homepage. HreflanghreflangCode that tells Google which language or country each version of a page is for, so it can show the right one. helps Google pick which version to show a searcher. It doesn’t decide how high that version ranks.

Bottom line

Map out your versions in a simple table first, with each URL, its language and its country. You’ll build the tags from it.

How to add hreflang tags (with an example)

Put tags like the example below in the <head> of both pages. Each page lists itself and the other version. In en-GB, en is the language code (English) and GB is the country code (United Kingdom). Use full URLs that start with https://.

If you have a language picker page for visitors whose language you don’t cover, mark it with hreflang="x-default". That tells Google which page to use as the fallback. On large sites, you can list hreflang in your XML sitemapXML sitemapA file that lists the pages on your site you want search engines to find, so they don’t have to discover every page through links. instead of in each page’s HTML. Pick the method your team can keep accurate when URLs change.

<link rel="alternate" hreflang="en-US" href="https://example.com/us/shoe-fit/">
<link rel="alternate" hreflang="en-GB" href="https://example.com/uk/shoe-fit/">

Bottom line

Every version must list the full set, including itself. If two pages don’t point to each other, Google may ignore the tags.

How to check your hreflang setup

Open both pages and compare their tags. Each page should load normally, show the right language or regional details, and list the other version. That link back from the other version is called a return link. Also check that each page can be indexedindexWhen a search engine stores a page so it can show up in results. A page can be crawled and still not be indexed. and that its canonical tagcanonical tagA line of code that tells Google which address is the main version of a page when the same content loads at several addresses. doesn’t point to the other version. If Google picks a different URL, review your canonical tags alongside hreflang.

After launch, open Search ConsoleSearch ConsoleGoogle’s free dashboard for site owners. It shows which searches bring people to your site and flags problems Google finds.’s Performance report, filter by country, and look at which page gets impressionsimpressionsThe number of times a link to your site appeared in search results, whether or not anyone clicked it.. If UK searchers keep landing on the US page, check the tags. These reports help you spot a mismatch, but they can’t prove that hreflang changed your rankings.

Bottom line

Whenever you change URLs or canonical tags, recheck one pair of language versions to make sure both still point to each other.

The evidence

Google documents hreflang as a way to identify alternate pages. It says paired URLs must point back to each other for those annotations to count.

  • Google Search Central · Official guidance · Last updated 2026

    Tell Google about localized versions of your page

    Google says hreflang can help it point users to the appropriate version. Each pair needs to link back to the other.

    Google can sometimes identify alternate URLs without hreflang. It also uses algorithms to detect the page’s language.

  • Google Search Central · Official guidance · Last updated 2025

    Managing multi-regional and multilingual sites

    Google lists hreflang among its target-locale signals and advises making alternate URLs explicit when the site offers variations.

    Geotargeting is approximate and interacts with several signals. This is not an estimate for a standalone annotation change.

Every source above was checked against the original by a second reviewer. How we rate the evidence