Free Hreflang Tag Generator
This free hreflang generator builds correct language and region annotations for multi-language sites in seconds — a common source of international SEO errors. No signup, nothing leaves your browser.
If using HTML tags, paste the full set into the <head> of every language version listed — not just one page.
What Hreflang Actually Does
Hreflang tells search engines which version of a page to show a searcher based on their language and location — French speakers in France get the fr page, French speakers in Canada get fr-CA if it exists. Without it, Google guesses using signals like server location and on-page language, which frequently sends the wrong regional version to the wrong audience, or lets one version outrank the others.
The Rule Almost Everyone Gets Wrong
Hreflang tags must be reciprocal — if your English page links to your French page via hreflang, the French page must link back to the English page (and to every other language version) the same way. A one-directional hreflang tag is invalid and Google will typically ignore the entire set for that page. This is the single most common reason hreflang implementations silently fail.
Language and Region Codes
- Language only (e.g.
en,fr,es) — targets all speakers of that language regardless of country, using ISO 639-1 codes - Language + region (e.g.
en-GB,es-MX) — targets a specific country using an ISO 3166-1 Alpha-2 region code, always language first - x-default — a special value marking the fallback page shown to visitors who don't match any listed language/region
Free Hreflang Generator FAQs
Do I need hreflang if my site is only in one language?
No. Hreflang is only relevant once you have two or more language or regional versions of the same content.
What happens if my hreflang tags aren't reciprocal?
Google's documentation states non-reciprocal hreflang annotations may be ignored entirely, meaning none of the language-targeting signals get applied even though the tags are present in your code.
Should hreflang tags be in the HTML or the sitemap?
Either works, but not both at once for the same URLs — pick one method per site. Sitemap annotations are often easier to maintain at scale since they don't require editing every page's HTML.
Do I need an x-default page?
It's optional but recommended — without it, visitors whose language doesn't match any listed version may be shown search results inconsistently rather than a sensible fallback.
Does this tool store or send my data anywhere?
No. Everything is generated in your browser with JavaScript — nothing is uploaded, logged, or stored on any server, including ours.
Running SEO across multiple countries?
Contomatix handles full international SEO strategy, not just hreflang tags.