Generators
Hreflang Tag Generator
Map each language or region to its URL and get a complete, reciprocal annotation set in the format your stack needs.
Separate the code and URL with a pipe, comma or tab. Codes use ISO 639-1 for language and optional ISO 3166-1 alpha-2 for region.
The fallback for users whose language you do not target.
Annotations
The rules that break sites
- Annotations must be reciprocal.If page A points to B, B must point back to A, or both are ignored.
- Include a self-reference.Every page lists itself in its own set. This tool does that automatically.
- Use absolute URLswith protocol and domain. Relative paths are invalid here.
- Region without language is invalid.
ukis not a language; useen-gb.
Choosing the right codes
Hreflang answers one question: which version of this page should a searcher in a given language or country see? It is a targeting hint, not a redirect, and it does not consolidate ranking signals the way a canonical does.
- Language only (
de) when the content suits every German-speaking market. - Language plus region (
de-at) only when pricing, stock or legal text genuinely differs. - x-default for your global or language-picker page. It is not a duplicate of your English version unless English really is the fallback.
Pick one delivery method. HTML tags are simplest; the XML sitemap approach keeps page weight down on large sites; HTTP headers are for non-HTML files like PDFs.