Hreflang checker: validate the language versions of a page

Enter a URL and this hreflang checker reads its hreflang annotations, fetches up to 20 alternate pages and checks that each one answers 200, is not redirected and links back. It also validates language and region codes and lists the findings.

  • Free
  • No sign-up
  • Checked on our server

Loading the tool…

Checked on our server: the address or domain you enter is sent over HTTPS to run the check. We don't keep it or the results.

How to use Hreflang Checker

  1. Type or paste the URL of one language version of your page.
  2. Wait for the short automatic bot check in your browser, then press the check button.
  3. Read the table of hreflang codes, URLs, status, return link and self reference.
  4. Fix the problems listed under the table, then check again.

Features

  • Reads hreflang from link rel="alternate" in the HTML and from the HTTP Link header
  • Fetches up to 20 alternate URLs, 5 at a time, and checks status, redirects and canonical
  • Checks that each alternate links back to the page (return link)
  • Table with hreflang, URL, status, return link (yes or no) and self
  • Validates language codes (ISO 639-1) and region codes (ISO 3166-1 alpha-2), for example en-UK should be en-GB
  • Flags the same code pointing to different URLs, a missing self reference, a missing x-default (info) and relative URLs
  • Requests use the User-Agent OneVixaBot/1.0 and send no cookies

Examples

InputResult
hreflang="en-UK" on https://example.com/en/Invalid region. The ISO 3166-1 code for the United Kingdom is GB, so use en-GB. — Placeholder host, used to show the format.
Page A lists page B as hreflang="es", but page B does not list page AFinding: missing return link. Each page in the set must link to the others, including itself.
hreflang="es-419"Not supported by Google, which uses ISO 3166-1 alpha-2 region codes and so does not accept numeric regions.

Limitations

  • Only hreflang in the HTML head and in the HTTP Link header is read. hreflang in XML sitemaps is not checked.
  • JavaScript is not run, so annotations added by scripts are not seen.
  • At most 20 alternate URLs are fetched per check.
  • Only http:// and https:// on ports 80 and 443. Private, local and reserved addresses are refused.
  • The URL is sent to the OneVixa server, which fetches the pages. URLs are not logged or stored.
  • Limit of 3 checks per minute, plus a short automatic bot check in your browser (proof of work, no cookies, no third party).

Learn more

Hreflang annotations link the versions of a page written for different languages or regions. Each annotation has a code, such as es for Spanish or es-MX for Spanish for Mexico, and the full URL of that version. The language part uses ISO 639-1 and the optional region part uses ISO 3166-1 alpha-2. A region can never be used on its own.

The key rule is reciprocity. Every version must list all the versions, including itself, and each target must return 200 without redirecting. If a page lists another but is not listed back, search engines may ignore the pair. The alternate URLs should also be canonical, because an alternate that declares a different canonical sends conflicting signals.

You can place annotations in the HTML head, in the HTTP header or in an XML sitemap. Pick one method and keep it consistent, because mixing them makes errors harder to find. An x-default entry is optional and names the page to show when no language matches.

Frequently asked questions

What is hreflang used for?

It tells search engines which language or regional version of a page to show to which users, by linking the versions together.

What is a return link?

Every page in an hreflang set must link back to every other page in the set. If page A points to B, B must point to A, or the annotations may be ignored.

Do I need an x-default?

It is optional, so the tool only reports it as information. It names the fallback page for users whose language is not listed, such as a language selector.

Why is en-UK flagged?

Region codes follow ISO 3166-1 alpha-2, where the United Kingdom is GB. The code UK is not valid, so use en-GB.

Sources

Last reviewed: October 1, 2026