🌍

Hreflang Generator

Generate hreflang tags for multilingual pages

🎯 SEO ToolsFreeRuns in your browser

⚠ Row 1 has a language code but no URL.⚠ Row 2 has a language code but no URL.⚠ Row 3 has a language code but no URL.

Every entry must point to a page in that language, and each language needs its own self-referencing tag. Use ISO 639-1 codes with an optional region, such as en, en-GB, or pt-BR.

About the Hreflang Generator

The Hreflang Generator builds the alternate-language tags that tell search engines which page to serve for each language or region. Add a row per translation and copy the tags into every page head.

Broken hreflang clusters usually come from a missing return link or a URL that redirects. After generating the tags, confirm that each URL resolves directly and appears in every page of the set.

  • ✓ISO language and region codes
  • ✓Duplicate language detection
  • ✓Optional x-default entry

How to use the Hreflang Generator

  1. 1

    Enter each language code and its page URL.

  2. 2

    Choose whether to add an x-default entry.

  3. 3

    Copy the tags into the head of each translated page.

Frequently asked questions

Must every page link to itself?+

Yes. Each page in the set should include a self-referencing hreflang tag as well as links to the other versions, otherwise the cluster is incomplete.

What is x-default used for?+

It marks the page shown when no other language matches the visitor, such as a language selector or an English fallback.

Save Hreflang Generator to your favorites, or keep browsing seo tools.

Browse all 26 seo tools →