Hreflang Tag Generator
Generate <link rel="alternate" hreflang> tags for every language version of your page.
Quick answer: Hreflang Tag Generator: generate <link rel="alternate" hreflang> tags for every language version of your page. Runs entirely in your browser, free, no signup.
Last updated
Good to know
When a site serves the same content in multiple languages or regional variants, hreflang annotations tell search engines which version to show which user, so a French speaker sees your French page instead of the English one ranking in its place. Each tag pairs a language (and optionally a region) with a URL, and getting the codes right is critical: use ISO 639-1 for the language and ISO 3166-1 Alpha-2 for the region, as in en-GB or pt-BR — and note the region qualifies the language, it is not a standalone country targeting.
The rule people most often break is reciprocity. Every page in a language set must link to every other version and back to itself; if page A points to page B but B does not point back to A, search engines discard the entire cluster as untrustworthy. Confirming that each generated block is mirrored across all your alternate pages is the single most important validation step.
Always include an x-default entry pointing at your fallback — usually a language-selector page or your primary market — to catch users whose language you do not explicitly serve. These tags can live in the HTML <head>, in HTTP headers, or in your XML sitemap, but never mix approaches for the same URL. Pair this with the canonical tag generator so each language version canonicalizes to itself, and list every variant in the sitemap generator.
Frequently asked questions
- Is the hreflang generator free?
- Yes — free with no signup.
- Do I need x-default?
- Yes — include an x-default entry that points to your fallback URL for users whose language isn't in the list.
- Should every page link to every other?
- Yes — Google requires reciprocal hreflang links across the entire language set, including back to itself.
- Are my URLs uploaded?
- No — every tag is generated in your browser.
- Which language codes work?
- ISO 639-1 (en, nl, de) optionally with region (en-US, en-GB).