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

Related Research Guides