Encited logo
PricingTalk to sales

Hreflang checker

Hreflang checker and tag validator

Test the hreflang tags on any page. Validate every language and region code, check that each alternate links back, and see which versions redirect, fail or say noindex.

Sends asMozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)

How to check hreflang tags

  1. Enter a URL

    Paste one language version of a page. The checker reads its hreflang links from the HTML head and the Link HTTP header.

  2. Pick the crawler

    Googlebot is the default. Pick Bingbot or another crawler if your site serves bots different HTML.

  3. Read the set

    Each hreflang code is listed with its URL. The checker validates the code and fetches every alternate, up to 20.

  4. Fix what the checks flag

    Invalid codes, missing return links, a missing self-reference, alternates that redirect, fail or say noindex each get a check.

What the hreflang checker checks

Language and region codes
Each code against ISO 639-1 for the language and ISO 3166-1 alpha-2 for the region, the only codes Google supports. en-UK and es-419 fail; en-GB and es-MX pass.
Return links
Whether each alternate lists this page back. Google ignores a pair when one side doesn't link to the other.
Self-reference
Whether the page lists its own URL, which Google asks every version to do.
x-default
Whether the set names a fallback page for visitors whose language doesn't match any version.
Alternate status
The status code of every alternate URL, any redirect on the way, a noindex, and a canonical that points elsewhere.
HTML and HTTP header
hreflang links in the head and in the Link HTTP header, and relative URLs that Google doesn't accept.

Hreflang in HTML, HTTP headers and sitemaps

Every version lists itself and all the others, with fully qualified URLs. Google treats the three methods as equivalent.

HTML head
<head>
  <link rel="alternate" hreflang="en-us" href="https://example.com/en-us/" />
  <link rel="alternate" hreflang="en-gb" href="https://example.com/en-gb/" />
  <link rel="alternate" hreflang="de" href="https://example.com/de/" />
  <link rel="alternate" hreflang="x-default" href="https://example.com/" />
</head>
Link HTTP header
Link: <https://example.com/en/guide.pdf>; rel="alternate"; hreflang="en",
      <https://example.com/de/guide.pdf>; rel="alternate"; hreflang="de"
XML sitemap
<url>
  <loc>https://example.com/en/</loc>
  <xhtml:link rel="alternate" hreflang="en" href="https://example.com/en/" />
  <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/" />
</url>

Common hreflang errors and how to fix them

Missing return links
Page A lists page B, and page B doesn't list page A. Add the same full set to every version.
Wrong codes
en-UK in place of en-GB, a region on its own (GB), an underscore (en_GB), or a code outside ISO 3166-1 such as es-419.
No self-reference
The page lists the other versions but not itself.
Alternates that redirect or fail
A link to http when the site moved to https, a trailing-slash redirect, or a page that was removed.
hreflang on non-canonical pages
The page's canonical points to another URL, or an alternate's does. Annotate canonical URLs only.
Relative URLs
href="/de/" in place of href="https://example.com/de/". Google asks for fully qualified URLs.

Hreflang checker FAQ

An annotation that tells Google which pages are language or regional versions of each other, so it can show searchers the version in their language. It lives in the HTML head, in a Link HTTP header, or in the XML sitemap.

Enter one version of the page above. The checker reads its hreflang set, validates every code, fetches each alternate and confirms it links back. To check by hand, view the page source and search for hreflang.

Missing return links, invalid codes such as en-UK, no self-reference, and alternates that redirect, return an error or say noindex. The list above covers each one.

Some sites serve crawlers different HTML from visitors, or redirect by user agent. Checking as Googlebot shows the hreflang set Google receives.

No. It's a fallback for visitors whose language doesn't match any version, often a language selector or the main version. Google suggests adding one.

Google treats the three methods as equivalent. HTML is the simplest for web pages, HTTP headers suit files such as PDFs, and the sitemap keeps large sets out of every page's head. This checker reads the HTML and the HTTP header.

It tells Google which version to show each searcher. Without a working set, Google can show German searchers the English page. Pages in the same language for different regions, such as en-US and en-GB, can also be treated as duplicates. See Duplicate without user-selected canonical.

This checker tests one page and its alternates. The site audit crawls every page and lists hreflang problems across the site.

Yes. It's free and you don't need an account.

More free SEO tools

“Encited has become my go-to for all Lovable projects. I saw an uptick in crawls almost immediately after switching. Honestly one of the best dev/SEO tools I’ve used. Aki was also amazing on support. Love it!”
Kyle Davidson
Kyle Davidson
Co-founder at Shoutout.io
Trusted by over 5,000 brands and agencies
Shoutout.io
Optimum Service Marketing
Brilus
Local Marketing Vault
API Worx
Main Street Marketer
Site audit

Find every redirect chain on your site

The site audit crawls every page and lists each redirect chain, loop and broken redirect, with the fix for each one.

  • Redirect chains, loops and 4xx targets in one list
  • Every issue comes with a recommended fix
  • Copy the fixes as a prompt for your coding agent
Book a demo
Site audit issues grouped by type with severity, affected page counts and copy-prompt actions
Click to zoom
Avatar
How can we help?
Get instant answers to your questions or leave a message for an engineer will reach out
Ask AI about Encited
See our docs
Contact support
Leave a message
We'll get back to you soon
Avatar
Ask AI about Encited
Product questions, troubleshooting and
Thinking
Preview
Drop an image to attach
Powered by ReplyMaven