International SEO Tool
Hreflang Tag, HTTP Header & XML Sitemap Generator
Build reciprocal international hreflang clusters with instant ISO 639-1 / ISO 3166-1 validation, catching broken country codes like en-UK, duplicate locales and missing x-default fallbacks before deploy.
67%
Domains with >= 1 hreflang error (Ahrefs 374,756-domain crawl)
56.3%
International domains missing an x-default fallback tag
3 formats
HTML <head>, XML sitemap & HTTP Link header output
1. Configure Your Localized URL Cluster
Enter ISO 639-1 language codes (e.g. en, es) and optional ISO 3166-1 Alpha-2 regions (e.g. GB, not UK).
Valid reciprocal cluster: All 4 locale annotations use valid ISO codes and absolute URLs.
<!-- Paste identically inside <head> on EVERY URL in this cluster -->
<link rel="alternate" hreflang="en-US" href="https://www.example.com/us/pricing" />
<link rel="alternate" hreflang="en-GB" href="https://www.example.com/uk/pricing" />
<link rel="alternate" hreflang="de-DE" href="https://www.example.com/de/preise" />
<link rel="alternate" hreflang="x-default" href="https://www.example.com/pricing" />
<!-- Remember: each page MUST also include a self-referencing <link rel="canonical" href="CURRENT_PAGE_URL" /> -->Frequently Asked Questions
- Why does Google reject en-UK in hreflang tags?
- Google requires ISO 3166-1 Alpha-2 region codes. The official code for the United Kingdom is GB, so valid British English tags must use en-GB rather than en-UK.
- Should localized hreflang URLs canonicalize to one global page or to themselves?
- Every URL in an hreflang cluster must include a self-referencing rel='canonical' pointing to itself—never a cross-locale canonical pointing to another country's page.
- When should I use XML sitemap hreflang instead of HTML head tags?
- Use HTML <link rel='alternate'> tags for small multi-region sites (2–9 locales) and switch to XML sitemap xhtml:link blocks once you manage 10+ regional versions so HTML head size stays lean.
Primary Sources
Verified
- Google Search Central: Tell Google About Localized VersionsNovember 27, 2026
- Ahrefs Large-Scale Hreflang Error Study (374,756 Domains)November 27, 2026
Related Research Guides
- November 27, 2026Hreflang And International SEO Data: Why 67% Of Domains Fail And How To Fix ItAhrefs crawled 374,756 domains and found 67% have hreflang errors (56.3% miss x-default). Fix reciprocal return tags, ISO codes and canonicals.
- November 27, 2026Canonical Tags And Duplicate Content: Why Google Ignores Your Canonical And How To Fix It60% of the web is duplicate content and 67% of mobile pages use rel=canonical—yet Google treats it as a hint. How canonicalization works and fixes.
- November 27, 2026XML Sitemaps And IndexNow In 2026: Protocol Limits, Lastmod And Discovery DataGoogle caps sitemaps at 50,000 URLs / 50 MB and ignores priority & changefreq, while IndexNow handles 3.5B+ URLs/day. Clean discovery rules.
- November 27, 2026Site Migration SEO Playbook: Traffic Recovery Data, Redirect Maps And Launch Audit1,052 domain migrations averaged 304 days median recovery (only 27% recover in 90 days). Full 301 map, Change of Address and launch checklist.