Use Hreflang Tag Generator

Enter your data below to use the Hreflang Tag Generator

📌 Try these examples:
RESULT

Last updated

SEO Impact of Hreflang

Examples

Example 1: Basic Multilingual Site (3 Languages)

Site with English, French, and German versions:

<!-- Add to <head> of EVERY page in the group -->

<!-- On the English page (https://example.com/en/about) -->
<link rel="alternate" hreflang="en" href="https://example.com/en/about" />
<link rel="alternate" hreflang="fr" href="https://example.com/fr/about" />
<link rel="alternate" hreflang="de" href="https://example.com/de/about" />
<link rel="alternate" hreflang="x-default" href="https://example.com/en/about" />

<!-- On the French page (https://example.com/fr/about) -->
<link rel="alternate" hreflang="en" href="https://example.com/en/about" />
<link rel="alternate" hreflang="fr" href="https://example.com/fr/about" />
<link rel="alternate" hreflang="de" href="https://example.com/de/about" />
<link rel="alternate" hreflang="x-default" href="https://example.com/en/about" />

Example 2: Multi-Regional (Same Language, Different Regions)

English site with US, UK, and Australian versions:

<!-- On the US English page -->
<link rel="alternate" hreflang="en-US" href="https://example.com/us/" />
<link rel="alternate" hreflang="en-GB" href="https://example.com/uk/" />
<link rel="alternate" hreflang="en-AU" href="https://example.com/au/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/us/" />

Use cases for regional variants:
  en-US: US pricing, US spelling, US legal disclaimers
  en-GB: UK pricing (£), British spelling, UK legal disclaimers
  en-AU: AU pricing (A$), Australian spelling, AU legal disclaimers

Example 3: Language + Region Combinations

E-commerce site targeting multiple markets:

<link rel="alternate" hreflang="en-US" href="https://shop.example.com/us/" />
<link rel="alternate" hreflang="en-GB" href="https://shop.example.com/uk/" />
<link rel="alternate" hreflang="en-CA" href="https://shop.example.com/ca/" />
<link rel="alternate" hreflang="fr-FR" href="https://shop.example.com/fr/" />
<link rel="alternate" hreflang="fr-CA" href="https://shop.example.com/fr-ca/" />
<link rel="alternate" hreflang="de-DE" href="https://shop.example.com/de/" />
<link rel="alternate" hreflang="de-AT" href="https://shop.example.com/at/" />
<link rel="alternate" hreflang="es-ES" href="https://shop.example.com/es/" />
<link rel="alternate" hreflang="es-MX" href="https://shop.example.com/mx/" />
<link rel="alternate" hreflang="ja-JP" href="https://shop.example.com/jp/" />
<link rel="alternate" hreflang="x-default" href="https://shop.example.com/us/" />

Frequently Asked Questions

Simply enter your data, click the process button, and get instant results. All processing happens in your browser for maximum privacy and security.

Yes! Hreflang Tag Generator is completely free to use with no registration required. All processing is done client-side in your browser.

Absolutely! All processing happens locally in your browser. Your data never leaves your device, ensuring complete privacy and security.