Hreflang Sitemap Generator
Generate an XML sitemap with xhtml:link hreflang annotations for multilingual and multi-regional websites. Group pages by language and include an x-default option.
Page Groups
Each group represents one page available in multiple languages. Add language+URL rows for each variant.
About Hreflang Sitemaps
Hreflang is an HTML attribute used to specify the language and geographical targeting of a webpage. In sitemaps, it's implemented via xhtml:link elements.
When to Use
- Multilingual sites — Same content in different languages (en, es, fr, de).
- Multi-regional sites — Same language targeting different countries (en-US, en-GB, en-AU).
- x-default — A fallback page for users whose language/region doesn't match any variant.
Best Practices
- Every URL must include hreflang annotations for ALL variants — including itself.
- Use ISO 639-1 language codes (e.g.,
en,es) and optional ISO 3166-1 Alpha 2 region codes (e.g.,en-US). - Validate your sitemap in Google Search Console after submission.