Hreflang Tag Generator
Generate hreflang tags for multilingual sites.
<link rel="alternate" hreflang="en" href="https://example.com/" />
<link rel="alternate" hreflang="es" href="https://example.com/es/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/" />About the Hreflang Tag Generator
Generate correct hreflang tags free for your multilingual or multi-regional site. Add each language/region code and its URL, set an x-default fallback, and copy link tags that tell Google exactly which version to show French users in Canada versus France. Hreflang mistakes (wrong codes, missing return links) are among the most common international SEO errors — this generator produces the valid pattern every time.
How to use the Hreflang Tag Generator
- 1Add each language/region and its matching URL.
- 2Set an x-default URL as the fallback for unmatched users.
- 3Copy the generated link tags.
- 4Paste them into the <head> of every alternate page.
Frequently asked questions
What does hreflang do?
hreflang tells search engines which language and region a page targets, so the right version is shown to the right users.
What is x-default?
x-default specifies a fallback page for users whose language/region doesn't match any of your specified versions.
Do hreflang tags need to be reciprocal?
Yes — every page in the set must list all the others (including itself). Missing return links are the top reason hreflang gets ignored.