HREFLANG GENERATOR

hreflang generator & checker

Build copy-paste hreflang tags for localized pages, validate language-region codes, and include x-default without guesswork.

Generator

Build a hreflang cluster

Every localized URL should list every alternate, including itself. Generate this same tag set for each page in the cluster.

ALTERNATE 1
ALTERNATE 2
ALTERNATE 3

How it works

How does this tool work?

  • Add one row for every localized version of the same page, plus x-default when useful.
  • The checker validates absolute URLs, duplicate locales, and language-region code shape.
  • Copy the generated cluster to every page in the set so alternates are reciprocal.

FAQ

Questions people ask before using this tool.

What is hreflang?

Hreflang is an HTML link annotation that tells search engines which localized URL to show for a specific language or region.

Should every page include itself in the hreflang cluster?

Yes. Each localized page should list every alternate URL in the cluster, including a self-referencing hreflang tag.

What is x-default?

x-default points to the fallback page for users whose language or region is not specifically matched, often a global homepage or language selector.

What format should language-region codes use?

Use ISO-style codes like en, en-US, fr-FR, de-DE, or x-default. Language is lowercase and region is uppercase.