Hreflang Validator
Check your page’s <link rel="alternate" hreflang="...">
and optional header Link: <...>; rel="alternate"
. Detect invalid language/region codes, duplicates, relative URLs, missing x-default
, and (optionally) return tags.
Check your page’s <link rel="alternate" hreflang="...">
and optional header Link: <...>; rel="alternate"
. Detect invalid language/region codes, duplicates, relative URLs, missing x-default
, and (optionally) return tags.
The Hreflang Validator scans your page for
<link rel="alternate" hreflang="xx-YY">
tags and optional
Link
HTTP header directives. It validates language–region codes,
detects duplicates, checks for x-default
, flags relative URLs,
and can sample whether return tags exist across alternates.
Hreflang tags help search engines serve the correct language or regional URL to users in international markets, reducing duplicate content issues and improving user experience.
en-UK
instead of en-GB
.x-default
: No fallback version for unspecified users./path/page
instead of absolute https://
URLs.en
, es
, fr
).US
, GB
, CA
).en
) and region uppercase (GB
).x-default
for a global catch-all page (e.g., homepage or language selector).<link rel="alternate" hreflang="en-US" href="https://example.com/us/page/" /> <link rel="alternate" hreflang="es-ES" href="https://example.com/es/page/" /> <link rel="alternate" hreflang="x-default" href="https://example.com/" />
A return tag means that if Page A references Page B with hreflang, then Page B must also reference Page A. Google requires this reciprocity.
Yes, it’s recommended for global or language selector pages. It tells Google what to serve when no exact language/region match exists.
Yes. By signaling which version to show to which audience, Google avoids showing multiple language versions in the same SERP.
Invalid codes, broken links, or missing return tags may cause Google to ignore the tags completely, leading to duplicate or misaligned rankings.
en
) and regions uppercase (e.g., GB
).
Always use absolute URLs and ensure every alternate page includes a return link to every other.