Generate your hreflang tags
One line per version: the language or region code, then the URL. This produces the <link> block for your page head and the sitemap entries, and adds x-default for you.
How to use it
Paste the output into the <head> of every version (the block must be identical on each, including a self-reference), or into each <url> entry of your sitemap. Then run the hreflang check to confirm every version links back.
Questions
- What is hreflang?
- A tag that tells search engines which language or region a page is for, so the right version is shown to the right audience. It only applies to sites with more than one language or region.
- Do I need x-default?
- Yes, add one. It is the fallback for visitors whose language and region match none of your versions. This generator adds it for you if you leave the field blank.
- Page tags or sitemap entries?
- Either works; page tags are more common. Do not use both inconsistently. This tool outputs both so you can pick.
- Must hreflang be reciprocal?
- Yes. Every version must link to the others, including itself. A one-way hreflang is ignored. Use the hreflang check to confirm reciprocity.