← Free tools

Hreflang Checker

The Hreflang Checker reads the hreflang tags in a page's HTML and lists each language and URL. It checks for an x-default fallback, an entry for the page itself, valid language codes and duplicate codes. If the page has no hreflang tags, it says so and shows the page's html lang value. It does not check the return tags on the other pages.

Updated

Free, no account needed.

How to read the hreflang result

The headline gives the number of hreflang tags found, and the table lists each language code with its URL. Four checks sit above it.

If there are no tags, the result is informational. That is fine for a site in one language. If you have translated versions, add the tags so search engines can tell the versions apart.

What each check means

x-default set warns when no entry uses x-default, the fallback for visitors whose language you do not cover. Self-referencing entry fails when the page does not list its own URL in the set. Each page in a set needs to include itself.

Valid language codes accepts a 2-letter language code with an optional 2-letter region, like en or en-GB, plus x-default. Anything else is flagged, including codes with a script such as zh-Hans, so check those by hand. No duplicate codes fails when the same code appears more than once.

What is not checked

Return tags are not checked. Every page you list must point back at this one, so open each target and run the check there too.

Fixing the common problems

  1. Add a link rel=alternate hreflang tag for every language version, including the page you are on.
  2. Add one x-default entry that points at the version for everyone else.
  3. Correct invalid codes. Use the language first, then the region, like fr-CA.
  4. Remove the duplicate entry when a code appears twice.
  5. Run the checker on each translated page to confirm they all list the same set.

Common questions

A site in one language doesn't need hreflang. It's for sites with the same content in different languages or for different regions.
x-default marks the page to show when none of your listed languages match the visitor. It is often the English version or a language selector page.
Hreflang can go in the head of the page, in HTTP headers or in the XML sitemap. This tool reads the tags in the page HTML only.

Track your AI visibility every week

Peak Answer runs checks like these every week, then writes the content and gets the placements.

Start 7 day trial