Running a site in more than one language? Generate valid, reciprocal hreflang tags — including x-default — so Google serves the right language version to the right searcher.
Use ISO codes like en, fr, or language-region like en-CA, fr-CA. Every URL should be absolute (start with https://).
Add the same block to the <head> of every language version (tags must be reciprocal).
Serving Vancouver in English and French? We’ll make sure both versions rank. Get a free international & local SEO audit.
Request my free audit →Hreflang tags tell Google which language and regional version of a page to show to which users. Without them, a French page might outrank your English one for English searchers — or Google might treat your translated pages as duplicate content. They’re essential for any site that publishes the same content in multiple languages.
Hreflang annotations must be bidirectional. If your English page points to the French page, the French page must point back to the English one. The safest approach is to include the full set of tags — every version, plus x-default — identically in the <head> of every version. That’s exactly what this tool outputs.
x-default is the fallback page shown when no language/region matches the user — often a language selector or your primary version. It’s optional but recommended.en, fr) if the content targets all speakers of that language. Add a region (en-CA) only when you have genuinely region-specific versions (e.g. different pricing or spelling for Canada vs the US).