Hreflang Cluster Validator

Check hreflang tags across a group of pages: missing return links, wrong language or country codes, missing self-reference and x-default, conflicting canonicals.

Tool

Was this tool useful?

About this tool

About Hreflang Cluster Validator

Hreflang only works when every page in a language group lists all the others – and they all link back. One wrong code like en-UK or one missing return link and Google may ignore the whole set. Paste each page’s URL with its <link rel="alternate" hreflang> tags, paste a sitemap with xhtml:link entries, or load up to 20 live pages. The validator builds the cluster and reports missing return links, invalid ISO language and country codes (with the right code), duplicate languages, relative URLs, missing self-references and x-default, and canonical tags that point elsewhere.

How it works

Language codes must be ISO 639-1 (en, ur, de), optionally with a script (Hant) and an ISO 3166-1 country (GB, PK) or 419. Every page must list itself and every page it lists must list it back.

Example

/en/ lists /de/, but /de/ does not list /en/ – “No return link”. en-UK is reported as wrong; the code for the United Kingdom is en-GB.

How to use this tool

  1. Paste URLs with their hreflang tags, a sitemap with xhtml:link, or enter live addresses and press “Load the pages live”.
  2. Read the problems for each page.
  3. Fix the tags in your CMS or sitemap and check again.

Frequently asked questions

Do I need x-default?

It is recommended. It tells Google which page to show to people whose language you do not have, often a language picker or the English page.

Is hreflang in the sitemap or in the HTML better?

Both work. Use one method and keep it complete; sitemaps are easier for large sites.

Does the Hreflang Cluster Validator send my data to a server?

Only if you press “Load the pages live”: our server then loads those public pages with strict safety checks (public addresses only, every redirect checked) and does not keep them. Tags you paste are checked in your browser.