Hreflang Tag Generator
Enter your language/region codes and URLs to generate valid hreflang link tags, with optional x-default, for international SEO.
Serve the right page to the right country
If your site has multiple language or regional versions, hreflang tags are what stop Google from showing your
French page to English readers or treating localized URLs as duplicate content. Each tag maps a language-region
code — like en-us, en-gb, or es — to the matching URL. This generator builds
the full set from your entries and can append an x-default for everyone who falls outside your
targeted regions.
The golden rule is reciprocity: every page in the set must reference all the others, itself included. Add the
complete block to the <head> of each localized page, and keep the codes valid ISO language and
country values.
Private and instant
Generated entirely in your browser — nothing is uploaded.
Frequently Asked Questions
What are hreflang tags?
hreflang tags tell search engines which language and regional version of a page to show each user. They prevent the wrong-language page from ranking and reduce duplicate-content confusion across localized URLs.
What is the x-default value?
x-default marks the fallback page for users whose language or region does not match any of your specified versions. This generator can add it automatically.
Do hreflang tags need to be reciprocal?
Yes. Every page in a language set must list all the others, including itself. Missing return links are the most common hreflang error, so add the full set to each page.
Is this tool free and private?
Yes. The tags are generated in your browser — nothing is uploaded or stored.
Running a multilingual or multi-region site? Let’s get it right.