Implement hreflang tags correctly for multi-language/region sites to prevent duplicate content and serve the right language.
Use the XML sitemap method for hreflang instead of HTML tags if you have many languages. Managing hreflang in the <head> becomes unmaintainable at 10+ languages (each page needs N tags where N = number of languages).
Hreflang must be bidirectional. If your English page points to the French version, the French page MUST point back to the English page. Missing return tags cause hreflang to silently fail.
Create a spreadsheet with columns: Page Path, en-US URL, es-ES URL, fr-FR URL, etc. Every page that has translations must have all variants mapped. Pages without a translation in a language should NOT have an hreflang for that language.
HTML method: Add <link rel="alternate" hreflang="es" href="https://example.com/es/page/"> for each language in every page's <head>. Sitemap method: Add <xhtml:link> elements inside each <url> block. The sitemap method is easier to maintain for many languages.
Add <link rel="alternate" hreflang="x-default" href="https://example.com/page/"> pointing to your default language or a language selector page. This tells Google what to show users whose language doesn't match any specific version.
Every hreflang annotation must be confirmed by the target page. If /en/page lists /es/page as the Spanish version, then /es/page must also list /en/page as the English version. Unconfirmed annotations are ignored.
In Screaming Frog: crawl your site, go to Hreflang tab. Check for: missing return tags, inconsistent hreflang values, non-200 hreflang targets, and self-referencing tags. In Ahrefs Site Audit: check the Localization report.
Generate hreflang implementation for my website: Languages/regions I target: [LIST: e.g., en-US, es-ES, fr-FR, de-DE] URL structure: [subdirectory /en/, subdomain en.site.com, or ccTLD site.co.uk] Generate: 1. Hreflang tags for a sample page across all my locales 2. x-default tag for the fallback version 3. XML sitemap with hreflang annotations 4. Common mistakes to avoid 5. A validation checklist
Track your progress and get guided through every step.
Open Interactive Tool