Hreflang Tester
Validate hreflang tags for language codes, region codes, x-default, and duplicate values.
✓ 6 hreflang tags — no issues
Parsed tags
| hreflang | href |
|---|---|
| en | https://example.com/en/ |
| en-us | https://example.com/en-us/ |
| fr | https://example.com/fr/ |
| de | https://example.com/de/ |
| es-mx | https://example.com/es-mx/ |
| x-default | https://example.com/ |
How hreflang works for international SEO
The hreflang attribute tells search engines which language and region each page is targeting. It helps Google serve the correct language version to users in different countries. The value uses ISO 639-1 language codes (e.g., en), optionally with ISO 3166-1 region codes (e.g., en-US).x-default specifies the fallback page when no locale matches. All alternate pages must include a reciprocal set of hreflang tags.
Private & free — this tool runs entirely in your browser.
Recommended: Namecheap — Register a domain for your next project — from $1.98/yr.affiliate
Related Web & SEO tools
Meta Tag Generator
Build SEO title, description, and viewport meta tags.
Open Graph Generator
Generate Open Graph and Twitter Card meta tags.
Robots.txt Generator
Build a robots.txt file with per-bot rules. Block AI crawlers, set crawl delays, define sitemaps.
UTM Campaign URL Builder
Append UTM parameters to build trackable campaign URLs.
Hreflang Tag Generator
Generate hreflang link tags for multilingual SEO.
Sitemap XML Generator
Build an XML sitemap from a list of URLs.
SERP Snippet Preview
Preview how your page title and meta description appear in Google search.
Meta Tag Analyzer
Paste a page's HTML head to audit its title, meta, and social tags.