Free technical SEO tool · no sign-up

Free Hreflang Tag Generator

Tell Google which language and region each version of your page targets. Add your locales and URLs to generate valid hreflang link tags — including the important x-default fallback.

What are hreflang tags?

Hreflang tags tell search engines that you have multiple versions of a page for different languages or regions, and which version to show to which user. They prevent your French page from outranking your English page for English searchers, and stop Google treating your localized pages as duplicate content.

Each tag pairs a language code (and optional region) with the URL of that version — for example hreflang="en-gb" for British English.

Hreflang rules that trip people up

Frequently asked questions

What is the x-default hreflang value?
x-default specifies the fallback page for users whose language or region you have not explicitly targeted — often your global or English homepage. Google recommends always including it.
Do hreflang tags have to be reciprocal?
Yes. Every language version must reference every other version, including itself. Missing return tags are the most common reason hreflang fails to work.
Where should hreflang tags go?
You can place them in the HTML , in the HTTP response headers, or in your XML sitemap. Pick one method and apply it consistently — do not mix them for the same URLs.
Is this hreflang generator free?
Yes — free, no sign-up, and it builds the tags in your browser.

More free tools