Check a page's hreflang tags
Type a page address. We read hreflang from the HTML and the Link header, check each language and region code, look for x-default and a self reference, and test return links on up to five versions. Free, no account.
How the check works
- The address is parsed first: http and https only, ports 80 and 443 only, no usernames, no IP addresses and no internal names such as localhost. Anything else is refused before any request.
- The name is resolved and every address it points to must be public. Private, loopback, link-local (cloud metadata included), multicast and reserved addresses are refused, and the connection goes to the address that was checked.
- We read the page (1500 KB at most) and collect link rel="alternate" hreflang tags from the head and hreflang entries in the HTTP Link header.
- Each code is checked against the ISO 639-1 language list and the ISO 3166-1 country list, with an optional script such as zh-Hant.
- Up to 5 of the other versions are opened, through the same guard and inside one 18-second budget, to see whether they list this page back.
What gets flagged
- Invalid codes: en-UK instead of en-GB, en_US with an underscore, jp instead of ja, a numeric region such as es-419, or a code that is not on the lists.
- Missing self reference: the page does not list its own address. Every version lists all versions, itself included.
- No x-default: optional, so a warning, not an error.
- Relative addresses, the same code pointing at two addresses, and hreflang on a page whose canonical points elsewhere.
- No return link: a version we opened does not point back. Unconfirmed pairs are ignored.
Who needs hreflang
Businesses with the same pages in more than one language or for more than one country: an English and Spanish version of a clinic's site, or separate pages for the US and Canada. A single-language local site does not need it, and the tool says so.
Agencies that build bilingual sites for local businesses can run each new build through it. To find businesses by trade and city, search 67Leads.
Get 67 leads free No card. Search free with contacts masked.
Canonical tag checkerSitemap validatorMeta tag checkerHTTP headers checkerRedirect checker
Questions
en-GB. The region part is the ISO 3166-1 country code, and the United Kingdom's is GB, not UK.
It is optional. It names the version for visitors whose language or country is not listed, often a language picker or the main English page.
Google's rules say each version lists every version, including its own address. A set missing the self entry is incomplete.
If the English page says the Spanish page is its alternate, the Spanish page must say the same about the English page. Search engines ignore pairs confirmed from one side only.
Yes. Google accepts it in HTML, in HTTP headers or in an XML sitemap. This tool reads the first two.
More free tools
Local business counterNo-website business finderLead list previewCold email template generatorAI crawler checkerllms.txt generatorllms.txt checkerLocal business schema generatorFAQ schema generatorrobots.txt generatorMeta tag checkerSchema markup checkerNAICS code lookupSIC code lookupSSL certificate checkerRedirect checkerBroken link checkerPage weight checkerLead list column mapperMerge tag checkerOpen Graph checkerCanonical tag checkerSitemap validatorHTTP headers checkerHeading structure checkerImage alt text checkerDNS lookupAll Website checks toolsAll tools