Free SEO Tool

Hreflang tag generator

Add your localised page URLs with language and region codes to generate a complete set of hreflang tags, including x-default. Output in HTML head format or Next.js metadata alternates format.

URL language pairs

2/30

Add each localised version of the page with its language and region code. Mark one as the x-default (fallback) URL.

#1
#2

Generated tags

Add URLs above to generate hreflang tags

Hreflang best practices

Every URL must reference every other URL

Hreflang is a two-way relationship. If page A references page B, page B must also reference page A, and all other language variants.

Use the correct language-region format

Use ISO 639-1 language codes (en, fr, de) and optionally ISO 3166-1 alpha-2 region codes (GB, US, DE). So en-GB, fr-FR, de-AT, etc.

Always include x-default

Set x-default to the URL you want to serve when no language or region matches — usually your main English or global page.

Self-reference is mandatory

Each page must include a hreflang tag pointing to itself. Omitting the self-referential tag can cause implementation errors.

Expanding internationally?

International SEO is more than hreflang tags. Our specialists handle technical implementation, content localisation strategy, and market-specific keyword research.