Hreflang Checker & Validator
Instantly check hreflang tags on any URL — validate language code syntax, detect missing x-default, flag inconsistent patterns, and see all detected alternates. Free, no signup required.
What is hreflang?
The HTML attribute that tells search engines which page to show — and to whom.
Hreflang is an HTML link attribute that signals to search engines which language and geographic region a page targets. When implemented correctly, it helps Google, Bing, and other search engines serve the right version of your page to the right users.
Without hreflang, Google has to guess which version of a page to show in which market — and it frequently gets this wrong, particularly for sites with overlapping English-language versions (e.g. US, UK, Australia) or closely related languages.
Hreflang is placed in the <head> of each page or delivered via HTTP Link headers, and must be implemented on every variant — not just the primary version.
Example hreflang tags
<link rel="alternate" hreflang="en-US" href="https://example.com/en-us/" /> <link rel="alternate" hreflang="en-GB" href="https://example.com/en-gb/" /> <link rel="alternate" hreflang="fr" href="https://example.com/fr/" /> <link rel="alternate" hreflang="x-default" href="https://example.com/" />
Why Hreflang Matters for International SEO
Correct Language Targeting
Hreflang tells Google which version to show to which users. Without it, Google guesses — and an English page may rank in both the US and UK when you want separate versions for each market.
Prevents Diluted Rankings
Without hreflang, multiple language variants of the same content can compete with each other in search. Hreflang consolidates ranking signals and prevents your own pages cannibalising each other.
Improves User Experience
Users who land on a page in the correct language and regional format have higher engagement and lower bounce rates. Getting someone from France to your French page — not your US page — is a meaningful UX win.
Common hreflang mistakes that hurt rankings
How to Implement Hreflang Correctly
A practical guide to setting up hreflang for international and multi-language sites.
Identify all language and region variants
List every language or region-specific version of each page. Each unique combination (e.g. English US, English UK, French) needs its own hreflang tag.
Use correct BCP 47 language codes
Use ISO 639-1 two-letter language codes (e.g. "en", "fr", "de"). For regional variants, append an ISO 3166-1 region code with a hyphen (e.g. "en-US", "fr-FR"). Underscores are invalid — always use hyphens.
Add tags to every page variant
Hreflang tags must be placed in the <head> of every variant page. Every page must include a complete set — self-referencing tag plus tags for all alternate variants. Incomplete sets will be ignored.
Include a self-referencing tag
Each page must include a hreflang tag that points to its own URL. Google requires this for the annotation to be considered valid.
Add an x-default tag
Include <link rel="alternate" hreflang="x-default" href="[your-main-url]"> to specify the fallback page for users that don't match any other language or region variant.
Use absolute URLs only
All href values in hreflang tags must be fully qualified absolute URLs (including the protocol). Relative URLs like "/en/" are not supported by Google.
Validate with this tool
Run each page variant through this hreflang checker to confirm tags are detected correctly, syntax is valid, and no issues are flagged.
✗ Common Mistakes
- —Using en_US instead of en-US (underscore vs hyphen)
- —Leaving out self-referencing tags
- —Using relative URLs in href attributes
- —Missing x-default tag
- —Only adding hreflang to the homepage
- —Injecting tags via JavaScript only
✓ Best Practices
- —Use hyphens in language codes: en-US, fr-FR
- —Add tags to every variant — not just the main page
- —Include a self-referencing tag on each page
- —Always include an x-default tag
- —Use absolute URLs with full protocol and domain
- —Validate after implementation and after major site changes
What This Hreflang Validator Checks
Eight checks run instantly on any public URL — no browser extension or login needed.
Tag presence
Detects all <link rel="alternate" hreflang> tags in the page HTML and HTTP Link headers.
BCP 47 syntax
Validates every hreflang value against the BCP 47 standard including ISO 639-1 and ISO 3166-1 codes.
x-default
Checks for the presence of an x-default tag — Google's recommended fallback for unmatched users.
Self-referencing
Verifies whether the page includes a hreflang tag pointing to its own URL.
Absolute URLs
Flags any hreflang href values that use relative URLs instead of fully qualified absolute URLs.
Duplicate tags
Detects duplicate hreflang values — e.g. two tags both claiming hreflang="en-US".
Consistency check
Flags mixed use of language-only and language+region tags for the same language family.
Tag inventory
Lists all detected hreflang tags, their language values, and target URLs in a clear table.
Limitations to be aware of
Frequently Asked Questions About Hreflang
What is hreflang?+
What does hreflang checker do?+
Why is hreflang important for SEO?+
What is x-default in hreflang?+
Does hreflang need to be on every page?+
What is a self-referencing hreflang tag?+
What are valid hreflang language codes?+
Can hreflang be in the HTTP header instead of the HTML?+
What happens if hreflang has errors?+
Why does this tool say "none found" on my site?+
Check Another URL
Run the hreflang validator on any page — a specific language variant, a competitor's site, or after you've made fixes.
Want to track your brand's visibility across AI search engines? GEOflux monitors ChatGPT, Gemini, and Perplexity.
Start a free trial →