Skip to main content
AmPuH Sign in
Switch toolHreflang generator

Tool 06

Hreflang generator

Build the reciprocal tag set a multilingual page needs, with x-default handled correctly.

These generators run in your browser, so they need JavaScript enabled. Everything explained on this page is still readable without it.

Nothing is sent anywhere. Reload to clear.

Every page must list every version, including itself

Hreflang is only honoured when it is reciprocal: if the Indonesian page points at the English one but the English page does not point back, Google discards the pair. So this output is the same block on all of your pages, self-reference included. That is not a redundancy, it is the requirement.

Paste inside <head> on every listed page
Add two or more language versions.

The three mistakes this tool refuses to make

A region without a language. hreflang="ID" is not Indonesia, it is invalid: the language comes first, so it is id, and Indonesian-for-Indonesia is id-ID.

Underscores. en_GB is a Java locale. The web wants en-GB.

A missing self-reference. Each page must list itself among the alternates, or Google treats the whole set as unconfirmed.

Also in tags and markup

All 18 tools