Hreflang Tag Generator
Generate hreflang tags for multilingual sites.
Free · No sign-up · Works in your browser
hreflang tags (for <head>)
<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
Free hreflang tag generator — create valid hreflang link tags for multilingual and multi-regional pages, including x-default.
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.