Performance + SEO + UX Intelligence

hreflang Checker: Make Sure Google Shows the Right Language Version

|
Published:
|
Updated:

hreflang tags tell Google which version of a page to show to which language or country. Enter a URL to check its hreflang tags for code format, absolute URLs, a self-reference and an x-default fallback. Free, no signup.

Free · No signup required · Results in about a minute

Checks per page

4

Code format, absolute URLs, self-reference, x-default

Language codes

ISO 639-1

With an optional ISO 3166-1 region, such as en-GB

Where it shows

SEO tab

Free for everyone

Introduction

If your site has the same page in several languages, or separate versions for different countries, Google needs to know which version belongs to which audience. hreflang tags are how you tell it.

Each language version lists all the others with a link tag such as <link rel="alternate" hreflang="de" href="https://example.com/de/">. When the tags are right, a searcher in Germany sees the German page and a searcher in the UK sees the en-GB page.

This hreflang checker reads the hreflang tags in your page's HTML and checks the details that most often go wrong: the code format, absolute URLs, the self-reference and the x-default fallback.

Why hreflang Matters

Without hreflang, Google may show the wrong language version, for example the US page to UK searchers with dollar prices, or the English page in Spanish results.

Near-identical regional pages, such as en-US and en-GB, can look like duplicates. hreflang tells Google they are intentional alternatives for different audiences.

hreflang errors are silent. Google ignores tags it cannot use rather than reporting them, so a typo can switch off targeting for a whole language without any visible sign.

What the Checker Looks At

Code format

Each value must be a language code, optionally followed by a region, such as fr, fr-CA or zh-Hant-TW, or x-default.

Absolute URLs

Each href must be a full address starting with https://, not a relative path.

Self-reference

The page must list itself among its alternates.

x-default

A fallback for visitors whose language or region does not match any version.

hreflang results are in the SEO section of the report, which is free for everyone. If the page has no hreflang tags, the report does not show an hreflang check, because a single-language site does not need them.

How It Works

Site Vitals reads the link rel="alternate" tags with an hreflang attribute from the HTML your server sends, and checks each one.

The code check looks at format, not at whether a code exists. A value such as en-UK has the right shape but is not a real region (the code for the United Kingdom is GB), so double-check region codes yourself.

It checks one page. It does not fetch the alternate pages to confirm they link back, and it does not read hreflang from XML sitemaps or HTTP headers. Scan each language version to check that every page lists the full set.

How to Set Up hreflang

  1. 1. List your versions

    Write down each language or country version of the page and its exact URL.

  2. 2. Choose the codes

    Use a language code (en, de, es) and add a region only when versions differ by country (en-US, en-GB).

  3. 3. Add the full set to every version

    Each version lists all versions, including itself, with absolute URLs.

  4. 4. Add x-default

    Point x-default at your language selector or the version for everyone else.

  5. 5. Match canonicals

    Each version's canonical tag should point to itself, not to another language.

  6. 6. Scan each version

    Run the checker on every language version to confirm the tags are complete.

Common hreflang Mistakes

Using a country code as a language, such as "uk" for English in the UK. "uk" is Ukrainian; use en-GB.

Missing return links: the English page lists the German page, but the German page does not list the English one, so Google may ignore the pair.

Relative URLs such as /de/ instead of https://example.com/de/.

Canonical tags on every language version pointing to the English page, which tells Google to ignore the other versions.

Forgetting the self-reference on each page.

hreflang Code Examples

The language part comes first and is required; the region is optional.

hreflang valueMeaningValid?
enEnglish, any countryYes
en-GBEnglish, United KingdomYes
es-419Spanish, Latin AmericaYes
x-defaultFallback for everyone elseYes
en-UKNot a real region codeNo, use en-GB
GBA region without a languageNo, use en-GB

hreflang Best Practices

Generate hreflang tags from one list of versions, so every page always lists the same set.

Only use regions when the content actually differs by country, such as prices, spelling or shipping.

Keep each language version on its own URL; do not switch language on the same URL by cookie or browser setting.

Choose one place for hreflang (HTML, sitemap or headers) rather than mixing them.

Re-check after adding a language or changing URL structure.

Frequently Asked Questions

What is hreflang?

hreflang is an HTML attribute that tells search engines which language, and optionally which country, a page is for, and which other URLs are versions of the same page for other audiences.

Do I need x-default?

It is recommended, not required. x-default tells Google which page to show when a searcher's language or region matches none of your versions, often a language selector or your main English page.

Does hreflang need return links?

Yes. If page A lists page B as an alternate, page B must list page A as well. Google may ignore hreflang pairs that are not confirmed in both directions. This checker scans one page, so run it on each version.

Does Bing use hreflang?

Bing has said it relies mainly on the content-language meta tag or HTTP header instead. hreflang is mostly for Google and Yandex, so adding both does no harm.

Do I need an account?

No. hreflang results are in the SEO section of the report, which is free for everyone.

Summary

hreflang tags send each visitor to the right language or country version. Small errors switch them off without warning.

Scan each language version after any change to catch format errors, relative URLs and missing self-references.

Check Your hreflang Tags

Validate code format, absolute URLs, self-reference and x-default for every hreflang tag on your page. Free, no signup.