Hreflang checkerCheck your language and region tags.

Enter the URL of a multilingual or multi-country page, and we'll validate its hreflang codes, then open each alternate page to check its status code, its noindex and canonical settings, and whether it links back to this page.

Free, no account needed. Up to 15 alternate pages are downloaded; subject to a daily limit per IP address.

What does hreflang do?

It tells search engines about the different language or country versions of the same content, so that a user in Germany sees the German version and a user in Türkiye the Turkish one.

Reciprocity is required

Hreflang works both ways: if the Turkish page points to the English one, the English page must point back to the Turkish one. Google ignores pairs without return links.

Correct codes

The language must be ISO 639-1 (tr, en, de) and the region ISO 3166-1 alpha-2 (TR, GB, AT). For the United Kingdom, use GB, not UK; underscores aren't allowed.

How to read the results

The report begins by stating how many hreflang tags were found on the checked page and how many alternate pages were opened and examined. The summary boxes show the number of tags and the page's html lang value, the number of invalid codes, the share of alternates that link back (e.g. 3 / 4) and whether there is an x-default. Look at the invalid code and return link boxes first; both lead Google to ignore the tags.

The alternates table

Each row is one hreflang tag. In the "Code" column, the value is followed by its reading (for de-AT, "German · Austria"); for invalid codes this name stays empty, and the "Notes" column shows the reason and a suggestion: "use GB for the United Kingdom → en-GB". The "Status" column gives the alternate page's HTTP status code; for redirected addresses, the final URL is added to the Notes column. The checked page's own row says "this page". The "Return link" column tells you whether the alternate page lists this page in its own hreflang set.

The reciprocity matrix

In the matrix, each row is an alternate page that was opened, and each column is a code on the page you checked. The mark in a cell shows whether that page carries this code in its own list. All cells should be filled: every version must list the same set, itself included. If an entire row is empty, that page has no hreflang at all; if a single column is empty, that language has been forgotten on one page. The matrix compares codes, while the "Return link" column compares addresses: if a page writes en-GB instead of en-UK, a gap appears in the matrix, but the return link may still count as present.

Suggested markup

The code block at the bottom is a corrected version of the tags found: invalid codes are replaced with the suggestions, and redirected addresses with their final URLs. Invalid codes with no suggestion are left out of the block. If there is no x-default, it is added with the first address in the list; change it if that address is not your language selection page or main version. Add the block unchanged to every language version. The tool opens at most 15 alternates at a time; for larger sets, only the codes of the rest are checked.

Common problems and how to fix them

The language code uses an underscore or the wrong letters

Many systems store the language as tr_TR or en_US; WordPress's get_locale() function returns it that way too. If this value is written into hreflang as is, the tool says "use a hyphen instead of an underscore" and Google ignores the code. Convert the underscore to a hyphen in the template:

<link rel="alternate" hreflang="<?php echo esc_attr( str_replace( '_', '-', get_locale() ) ); ?>" href="…">

A similar mistake is to take a region code for a language: Ukrainian is uk, not ua, and British English is en-GB, not en-UK. Numeric region codes such as es-419, used for Latin American Spanish, are not supported either, because they are not in ISO 3166-1 format; for these, the tool suggests the language code alone (es).

No return link

This is the most common problem, and it usually appears when a new language is added to only one of the versions: the Turkish page points to the German version, but because the German template was not updated, it does not point back to the Turkish one. The lasting fix is to generate the hreflang set on every page from a single list, so that all versions are updated together when a language is added. Every version must contain exactly the same set:

<link rel="alternate" hreflang="tr" href="https://www.ornek-site.com/tr/">
<link rel="alternate" hreflang="en-GB" href="https://www.ornek-site.com/en/">
<link rel="alternate" hreflang="de" href="https://www.ornek-site.com/de/">
<link rel="alternate" hreflang="x-default" href="https://www.ornek-site.com/">

If you see an empty row in the matrix, check that page separately with this tool too; its own findings show which tags are missing.

Alternate URLs redirect

The most common cause of the redirect warning is the trailing slash (/de → /de/); moving from http to https or from the non-www to the www address has the same result. Always write the final URL in hreflang. A more serious case is sites that automatically redirect visitors by IP address or browser language. According to Google's documentation, Googlebot mostly crawls from IP addresses in the US; a site that redirects visitors by location may never show it the other versions. Instead of an automatic redirect, show a language suggestion banner at the top of the page. When you rework the rules, the redirects guide can help.

An alternate page is noindex or returns an error

When you launch a new language version, a noindex left over from staging, or unpublished pages returning 404, show up as critical findings: a page that is not indexed cannot be part of an hreflang set. If the version is not ready, remove its tag from the other pages as well; if it is ready, remove the noindex directive and verify the page with the Meta tag checker.

Example: a corporate site in three languages

The Turkish home page at https://www.ornek-site.com/tr/ has three tags: tr, en-UK and de. The tool opens the two alternates and fills in the table as follows:

  • tr: "this page". Because the page lists itself, "The page lists itself in its hreflang set" counts as passed.
  • en-UK: status 200, return link "None". The notes say "use GB for the United Kingdom → en-GB" and "no return link". The English page lists itself as en-GB and the German page as de, but does not point to the Turkish page.
  • de: status 200, return link "Yes". The notes say "redirects" and give https://www.ornek-site.com/de/ as the final URL.

The summary boxes show invalid codes 1, return links 1 / 2 and x-default "None". The findings consist of two critical ones ("1 invalid hreflang code", "1 alternate page doesn't link back to this page"), one warning ("1 alternate URL redirects") and one info note ("x-default isn't defined"). What to do:

  1. Change the en-UK code to en-GB in the Turkish and German templates.
  2. Write the German version's address with the trailing slash.
  3. Add the tag for the Turkish version to the English template.
  4. If the root address https://www.ornek-site.com/ is a language selection page, add it as x-default. The suggested markup block uses the first address in the list for x-default, which here is the Turkish page; choose the one that is right for you.
  5. Add the same set to all three versions and run the tool separately for each version; every cell in the matrix should be filled.

Frequently asked questions

Where do hreflang tags go?

In one of three ways: <link rel="alternate" hreflang="…" href="…"> in the page's <head> section, a Link header in the HTTP response, or xhtml:link elements in the XML sitemap. This tool checks the first two.

What is x-default, and is it required?

hreflang="x-default" is the page to show when no version matches the visitor's language or country; usually a language selector page or the main version. It isn't required, but it's recommended.

Should a page list itself too?

Yes. Each language version should list its own URL with its own code alongside its alternates. Using the same hreflang set on all versions is the most robust approach.

How do you use canonical and hreflang together?

Each language version's canonical URL should be itself. If the English page's canonical points to the Turkish page, search engines treat the English version as a duplicate and the hreflang tags become invalid.

Learn more about this topic: Hreflang guide