Home › SEO Tools › Hreflang Tag Generator

Hreflang Tag Generator

List each language version of a page to generate the hreflang tags for its head section.

How it works

Every version must list all versions, including itself, and the tags must be the same on each page. Use ISO language codes, with an optional region such as en-gb.

Why use it

Everything runs in your browser: nothing you type is sent to a server, so it is safe for client and unpublished work.

Frequently asked questions

What is x-default?

The fallback page for users whose language or region you do not target, such as a language chooser.

Where do hreflang tags go?

In the head of each page, in the XML sitemap, or in HTTP headers. Use one method only.

Last reviewed 2026-11-25 · How we build and check our tools