Hreflang Tag Generator

Generate valid link rel=alternate hreflang tags with automatic x-default fallback for Canadian bilingual and regional sites.

Inputs

Generate reciprocal rel=alternate hreflang tags for bilingual Canadian or international sites.

Generated hreflang-tags.html

Ready to copy or download. Runs 100% in your browser.

<link rel="alternate" hreflang="en-CA" href="https://example.ca/" />
<link rel="alternate" hreflang="fr-CA" href="https://example.ca/fr/" />
<link rel="alternate" hreflang="en-US" href="https://example.com/" />
<link rel="alternate" hreflang="x-default" href="https://example.ca/" />
  • Include the identical set of tags on every regional variant page.

Common questions

Must hreflang tags be reciprocal across pages?

Yes. If the English page links to the French page, the French page must link back to the English page and to itself.

Can hreflang use relative URLs?

No. Always use full canonical HTTPS URLs in every href attribute.