Free tools

hreflang checker

Paste a page's HTML head and check its hreflang annotations: codes, x-default, duplicates and self-reference. Runs in your browser; nothing you paste leaves this page.

hreflangURL

How to use it

  1. View the source of one language version and copy its <head>.
  2. Enter that page's URL so the self-reference can be checked.
  3. Repeat for each language version; all must list the same set.

What it covers

Accepts

HTML containing <link rel="alternate" hreflang> elements, plus the page URL.

Returns

Invalid or misspelt codes, relative URLs, conflicting duplicates, missing x-default and missing self-reference.

Stops at

Fetching the other versions to confirm they link back, and hreflang declared in HTTP headers or sitemaps.

Questions

Is "en-UK" wrong?

Yes. Region codes are ISO 3166-1; the United Kingdom is GB, so the code is en-GB.

Do I need x-default?

Not strictly, but it tells search engines which version to show when no language matches.

Check a whole site in one call

The audit endpoint runs this kind of check across sampled pages of a site, with the evidence URLs. Related checks: No html lang attribute, No canonical tag.

More free tools