Free hreflang Tag Generator
Something not working? Report a problem
About the hreflang Tag Generator
Generate hreflang link tags to tell search engines which language and region each version of your page targets — copy the ready-to-paste HTML, all in your browser.
How to use the hreflang Tag Generator
- 1Add a row for each language or region version of the page, with its language code and URL.
- 2Optionally set a default URL to fall back to for visitors whose language isn't listed.
- 3The hreflang tags update live below.
- 4Copy them into the `<head>` of every version of the page — each version needs the full set, including a tag pointing to itself.
Frequently asked questions
Is this hreflang generator free?
Yes — completely free, with no sign-up and no watermark.
Is my content uploaded anywhere?
No. The tags are built entirely in your browser — nothing you type is sent anywhere.
What is hreflang for?
It tells search engines which language and, optionally, region each version of a page is meant for — so a French speaker in Canada is shown the fr-CA version instead of the English one, even though both pages cover the same content.
What language code should I use?
A two-letter ISO 639-1 language code on its own (like “en”) targets a language everywhere, while adding a region (like “en-GB” or “en-US”) targets that language in a specific country. Use whichever level of precision matches how your site is actually split.
What does x-default mean?
It's the fallback version shown to visitors whose language or region isn't explicitly listed — commonly a language-selector page or your default/international version.