VulnerabilityTools Free scan

Hreflang Tag Generator

Build valid hreflang tags for every language version of your page.

On-Page SEOFree · no signupRuns in your browser

Include an x-default row for unmatched visitors. Use ISO codes like en, en-us, de, fr-ca.

About this tool

The hreflang tag generator creates valid hreflang link tags for multilingual and multi-regional websites. Correct hreflang tells Google which language version to show each visitor, preventing duplicate-content issues between, say, your English, Spanish and French pages.

How to use

  • 1. Click + Add language for each version.
  • 2. Enter the ISO language code (optionally with region) and its URL.
  • 3. Add an x-default row, generate, and paste the tags into each page's <head>.

Frequently asked questions

What format do language codes use?

ISO 639-1 language + optional ISO 3166 region: en, de, fr-ca, es-mx, or x-default for the fallback.

Do all versions need the tags?

Yes, hreflang must be reciprocal: every language version links to all others including itself.

Can I use this for regional same-language sites?

Yes, e.g. en-us vs en-gb for US vs UK English content.

Is your website secure? Run the free 7-section scan: vulnerabilities, malware, headers, SEO and speed.

Scan my website

Related tools

More from On-Page SEO and SEO.

All 98 tools →