Home Services Industries Tools Blog Contact Français
Free SEO Tool

Hreflang Tag Generator

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.

HomeTools › Hreflang Generator

Language Versions

Use ISO codes like en, fr, or language-region like en-CA, fr-CA. Every URL should be absolute (start with https://).

Your hreflang Tags

Add the same block to the <head> of every language version (tags must be reciprocal).

Bilingual site, double the opportunity

Serving Vancouver in English and French? We’ll make sure both versions rank. Get a free international & local SEO audit.

Request my free audit →

What are hreflang tags?

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.

The golden rule: reciprocity

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.

What is x-default for?
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.
Should I use en or en-CA?
Use the plain language code (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).

More free SEO tools