Generators · 100% free

Hreflang Tag Generator

Generate hreflang link tags for multi-country / multi-language ecommerce sites.

Google Bing
Locale URLs
html
<link rel="alternate" hreflang="en-US" href="https://example.com/" />
<link rel="alternate" hreflang="en-GB" href="https://example.com/uk/" />
<link rel="alternate" hreflang="de-DE" href="https://example.com/de/" />
<link rel="alternate" hreflang="fr-FR" href="https://example.com/fr/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/" />
Critical rule: hreflang must be reciprocal — if page A links to B, B must link back to A, otherwise Google drops the pair. Use 'x-default' for the fallback URL shown when no locale matches.

About this tool

Hreflang tells Google which language and country a page targets, critical for multi-region stores. Generator outputs hreflang link tags with x-default fallback, validates language-country code pairs, and exports both <link> and sitemap-xhtml formats.

Hreflang rules that bite stores

  • • Use ISO 639-1 + ISO 3166-1 Alpha 2 (en-US, fr-FR, de-DE — never en-UK; correct code is en-GB)
  • • Every page must include itself in the hreflang set (self-referencing entry)
  • • Reciprocal — if /uk/ links to /us/, /us/ must link back to /uk/
  • • Canonical URL must be IN the hreflang set, not pointing outside it
  • • x-default points to the fallback (usually the language selector or default locale)

More free tools

See all tools →
Free forever · No card

Why wait? Try it free today.

Stop managing feeds manually. Start optimising with AI in 30 seconds.

  • 100% free forever, no credit card required
  • 1 brand, 1 feed, 100,000 products per feed
  • Full AI Product Optimisation, Rule Engine, and 200+ channel exports
  • Pay only for AI credits when you need them