Free tool

Hreflang Generator

List each language version of a page with its address and get the hreflang link tags, with an optional x-default. Codes are checked as you type. Everything runs in your browser.

Format: code address, for example vi https://example.com/. A comma or | also works.

Add at least one version to see the tags.

  1. 1

    List the versions

    One per line: language code, then the full address.

  2. 2

    Pick the default

    Optional x-default for visitors whose language is not listed.

  3. 3

    Copy the tags

    Put the full set in the head of every version.

Checks the codes

Catches bad codes, bad addresses and duplicates.

x-default included

Choose which version is the fallback.

Runs in your browser

Nothing is sent or saved.

What is hreflang?+

A tag that tells search engines which language or region each version of a page is for.

Which codes are valid?+

A language such as vi or en, optionally with a region such as pt-BR or a script such as zh-Hans.

Where does it go?+

In the head of every version, listing all versions including the page itself.

Want this automated for every article?

AI Brand Visibility's pipeline checks and optimizes this automatically for every article it generates - no need to do it by hand each time.

Technical Audit