Generator

Free Hreflang Tag Generator

Create hreflang annotations for multilingual and multi-region sites as HTML tags, XML sitemap entries or HTTP headers.

Versions of this page

Add one row for every language or country version, including the page you're on.

Shown to people whose language doesn't match any version — often a language picker or your main site.

Output format

Add to the <head> of every version
Add at least one full URL above.

More languages means more pages waiting to be indexed

Launching a new locale can add hundreds of URLs at once. IndexBoost submits each one to Google, Bing and IndexNow as soon as it's live, so your international pages start ranking sooner.

Get started free

Context

Hreflang without the headaches

1

Every version must link to every other version

Hreflang only works when the annotations are reciprocal. If your German page points to the English one but not the other way round, search engines may ignore both.

2

Include a self-reference

Each page's set of tags should list itself as well as its alternates. The simplest approach is to paste the exact same block into every version.

3

Language first, region optional

Use just a language code when one page serves all speakers of that language. Add a region only when you really have different content, like prices in GBP versus USD.

4

Pick one method and stick to it

HTML tags, sitemap entries and HTTP headers all work, but mixing them makes errors hard to track down. Sitemaps tend to be easiest to maintain on large sites.

FAQ

Common questions

Back to all free tools