NewIntroducing semantic snapshotsPair every capture with structured DOM data →

Free tools · no sign-up

Hreflang checker

Paste a page's HTML and see whether its hreflang tags are ones Google will use, and which line is wrong when they are not.

Checked in your browser as you type. Nothing you paste is sent to domscout. To get the HTML, open the page, press Ctrl+U (Cmd+Option+U on a Mac) and copy everything.

Error (line 3) - "uk" is not a country code here. The United Kingdom is "GB", as in en-GB.

Error (line 4) - The href must be an absolute http or https URL.

Note - Every page in this set must link back to all the others with the same tags. Run each listed URL through this check to confirm the return links.

hreflangURLLine
enhttps://example.com/en/2
en-UKhttps://example.com/uk/3
de/de/4
x-defaulthttps://example.com/5

What Google needs from an hreflang set

Every URL is absolute, every value is a valid language or language and country, and each value names one URL.

Every page in the set lists itself and all the others, and each one links back. Google drops a pair when one side is missing.

The tags sit on the canonical version of each page. On a page whose canonical points elsewhere, Google follows the canonical and ignores the hreflang. To check these tags on every deploy instead of by hand, see automated hreflang checks.

Questions

No. You paste the HTML and the check runs in your browser as you type, so it also works on a page that is not live yet. Nothing you paste is sent to domscout.

More free tools

Give your product a browser.

Get clean web content and visual proof into your workflow in minutes.