---
title: "Hreflang Checker: Free Hreflang Tag Validator | Encited"
url: https://encited.com/free-tools/hreflang-checker
description: "Check any page's hreflang tags. Validate language and region codes, find missing return links and x-default, and test each alternate as Googlebot. Free."
lang: en
---

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 as `Mozilla/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

### What is hreflang?

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.

### How do I check hreflang tags?

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.

### What are the most common hreflang errors?

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.

### Why does the checker ask for a user agent?

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

### Is x-default required?

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.

### Should I use hreflang in HTML, HTTP headers or the sitemap?

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.

### Does hreflang affect rankings?

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 (https://encited.com/blog/duplicate-without-user-selected-canonical).

### How do I check hreflang across a whole site?

This checker tests one page and its alternates. The site audit (https://encited.com/site-audit) crawls every page and lists hreflang problems across the site.

### Is the hreflang checker free?

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

## More free SEO tools

- SEO Audit 30 checks for crawlability, SEO, and AI readiness: https://encited.com/free-tools/seo-audit
- Crawler Simulator See what 100+ search and AI bots get from your page: https://encited.com/free-tools/crawler-simulator
- Googlebot Simulator Fetch your page as Googlebot Smartphone or Desktop: https://encited.com/free-tools/crawler-simulator/googlebot-simulator
- Verify Googlebot Check if a crawler IP really belongs to Google: https://encited.com/free-tools/verify-googlebot
- Redirect Checker Trace redirect chains and the status code of each hop: https://encited.com/free-tools/redirect-checker
- Robots.txt Checker Check which crawlers are allowed or blocked: https://encited.com/free-tools/robots-txt-analyzer
- OG Image Checker Check OG images and preview social link cards: https://encited.com/free-tools/og-image-previewer
- Meta Tag Audit Audit meta tags and generate a fix prompt: https://encited.com/free-tools/meta-tag-audit
- AI Readiness Checker Check if ChatGPT, Claude and Perplexity can read your site: https://encited.com/free-tools/ai-crawl-checker
- HTML to Markdown Convert HTML or a URL to clean Markdown: https://encited.com/free-tools/html-to-markdown
- llms.txt Generator Generate and validate an llms.txt file: https://encited.com/free-tools/llms-txt-generator
- Canonical URL Checker Check canonical tags and their targets: https://encited.com/free-tools/canonical-checker

## Related guides

- Alternate Page with Proper Canonical Tag: What It Means and When to Fix It: https://encited.com/blog/alternate-page-with-proper-canonical-tag
- Duplicate Without User-Selected Canonical: What It Means and How to Fix It: https://encited.com/blog/duplicate-without-user-selected-canonical
- Crawled - Currently Not Indexed: What It Means and How to Fix It: https://encited.com/blog/crawled-currently-not-indexed
- How Google Renders JavaScript: https://encited.com/blog/how-google-renders-javascript

> “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!”

Image: Kyle Davidson (https://encited.com/users/kyledavidson.webp)

Kyle Davidson

Co-founder at Shoutout.io

Trusted by over 5,000 brands and agencies

Image: Shoutout.io (https://encited.com/clients/client-shoutout-io.png)

Image: Optimum Service Marketing (https://encited.com/clients/client-optimumservicemarketing.webp)

Image: Brilus (https://encited.com/clients/client-brilus.svg)

Image: Local Marketing Vault (https://encited.com/clients/client-local-marketing-vault.png)

Image: API Worx (https://encited.com/clients/client-api-worx.webp)

Image: Main Street Marketer (https://encited.com/clients/client-mainstreet-marketer.png)

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: https://encited.com/book-a-demo

Image: Site audit issues grouped by type with severity, affected page counts and copy-prompt actions (https://encited.com/marketing/product/seo-spider-2842x1922.webp)

Click to zoom

Image: Avatar (https://replymaven.com/api/uploads/Su6Q0nK63iZW0ZFJBRNWpmRuppVDLuab/98df5262-f992-45fa-a750-00a6c919baf9.png)

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 (https://lovablehtml.com/docs)

Contact support

Leave a message

We'll get back to you soon

Ask AI about Encited

Product questions, troubleshooting and

Thinking

Image: Preview

Drop an image to attach

Powered by ReplyMaven (https://replymaven.com/)