Skip to the content
Start free

Hreflang Checker

Check the language and country versions of a page: every hreflang tag, return links, language codes, x-default and canonicals, with the fixed tags written for you.

It opens in the URSY app. 2 free checks a day, no account needed. Every number shows its source and when we checked it.

Guide

What this checker does

It reads the page you type and collects every hreflang line: the <link rel="alternate" hreflang="..."> tags in the HTML and any hreflang sent in HTTP Link headers. Each line tells search engines that another address holds the same page in another language, or for another country.

Then it opens each of those versions, up to 50, one request a second, and checks what Google checks: that the version works, that its canonical points to itself, and that it links back to the page you typed with the right code.

Why it matters

hreflang helps Google show people the version in their own language or for their own country, for example your UK page to searchers in the UK and your German page to searchers in Germany. Without it, the wrong version can appear, or one version can push out the others.

Google is strict about it. If two pages do not both point to each other, Google ignores the tags. Codes it does not recognise have no effect. So a set that looks fine on one page can still do nothing at all.

The rules we check

These come from Google Search Central's guide to localised versions.

  • The code starts with a two-letter ISO 639-1 language code, such as en, de or fr. A script (ISO 15924, such as Hant) and a country (ISO 3166-1 alpha-2, such as GB) may follow.
  • A country on its own is not allowed. Codes that are not countries, such as UK or EU, have no effect: the United Kingdom is GB.
  • Each version lists itself and every other version.
  • Every address is written in full, with https:// and the host.
  • x-default is the fallback for everyone else. Google recommends it.

How to read the result

The cards give the totals: how many versions were found, how many codes are valid, how many versions link back, and whether there is an x-default. The table has one line per hreflang code, with problems first.

"Could not read (403)" means the site refused our request. That is not the same as broken: many sites refuse bots that are not search engines. Those versions are left out of the score. Only a 404 or 410 answer counts as not found.

How to fix problems

Start with the corrected tags under the results. We fix the codes we can, for example en-UK becomes en-GB, write every address in full, and add this page and an x-default when they are not there. Check the set before you publish it, then put the same set in the <head> of every version.

Then fix any version that does not link back, answers with an error, redirects or has a canonical pointing somewhere else. Run the check again on another version to see the set from its side.

Why it matters

Hreflang breaks quietly. Google's guide on localised versions says "If two pages don't both point to each other, the tags will be ignored." One missing return link and the pair stops counting, with no warning on the page itself. The same guide names the 3 common mistakes: missing return links, wrong language codes and wrong region codes. It also says codes such as es-419 are not supported.

Two more details catch people out. Google says it does not use hreflang or the HTML lang attribute to detect a page's language; it uses its own algorithms. And its canonical guide asks that a page name a canonical in the same language. A French page that names the English page as canonical is telling Google the French one is only a copy.

Check it yourself today

  1. View the source of your UK page and search for hreflang. Write each language code and address in a spreadsheet, one row each.
  2. Open every address in that list and do the same. Each page should show the identical set, itself included.
  3. The Meta Tag Checker lists hreflang links next to the canonical, which saves the view-source step.
  4. If you send the tags as headers, look for Link: lines with rel="alternate" in the HTTP Header Checker.
  5. If they sit in your sitemap, open it in the XML Sitemap Checker and confirm each <url> carries the full set of xhtml:link lines.

Common problems and how to fix them

en-UK instead of en-GB

The country code for the United Kingdom is GB. Replace every en-UK, then recheck the return links.

The new language added on one side only

Adding an Irish page means editing every existing version too. Generate the full set again rather than patching one page.

Alternates that redirect

If /ie/ redirects to /ie/home/, list the final address. Tags should point straight at working pages.

Related in URSY Pro

The Hreflang audit checks every language set across your whole site on a schedule and flags the pairs that break.

Sources

Updated 23 November 2026 by URSY.

Questions and answers

Why is en-UK wrong?

The country part must be an ISO 3166-1 alpha-2 code, and the code for the United Kingdom is GB. UK is reserved and is not a country code, so Google ignores it. Use en-GB.

Do I need x-default?

It is not required, but Google recommends it. It names the page to show people whose language or country matches none of your versions, often a language picker or your main version.

Should each version list itself?

Yes. Google says each language version must list itself as well as all the others. The simplest way is to put exactly the same set of lines on every version.

Is it better to use HTML tags, HTTP headers or the sitemap?

Google treats the three ways the same, and using more than one brings no extra benefit. HTTP headers are handy for files that are not HTML, such as PDFs. This checker reads the HTML and the headers; it does not read sitemaps.

Does the case of the code matter?

No. Google reads hreflang values in any case, so en-gb and en-GB are the same. The usual way to write them is the language in lower case and the country in capitals.

Can the versions be on different domains?

Yes. Google says alternate addresses do not have to be on the same domain, so example.de and example.co.uk can point to each other. The return-link rule still applies.

Create a free account

Every tool at Pro level, free for 6 months. No card. More checks a day, every row of every table, and your sites tracked over time.

Create a free account

Sign in with a code we email you. No password.