Free tool · Technical SEO

Hreflang tag generator

Add each language or regional version of a page to generate hreflang annotations as HTML link tags, XML sitemap entries or HTTP headers. Codes are validated as you add them, so mistakes such as en-UK never ship.

Versions of this page

One row per language or regional version.

Shown to searchers whose language you don't target. Often your main page or a language selector.

0 versions in the set
HTML · 0 tags
Add a language and a URL to generate the tags.
Every version must carry this full set, itself included, and the x-default page too. If one version leaves out the others or doesn't link back, Google ignores those pairs. HTML tags go in the <head>. One method is enough: HTML tags, the sitemap or the HTTP header.

How it works

Three steps, no signup.

1

Add your versions

Pick a language, an optional region and the URL for each version of the page. Paste a list to add many at once.

2

Set a default

Choose an x-default page for visitors whose language you don't target.

3

Copy the output

Get the same set as HTML, XML sitemap or HTTP header format. Add it to every version of the page.

FAQ

Hreflang Generator questions.

What is hreflang?

An annotation that tells search engines which language and region a page targets and where its alternate versions live, so each searcher gets the right version in results.

Which codes does hreflang use?

An ISO 639-1 language code, optionally followed by an ISO 3166-1 alpha-2 region, such as en, en-US or pt-BR. A region on its own is invalid, and the UK is GB, not UK.

What is x-default?

The fallback page for users whose language or region does not match any of your versions, often a language selector or your main international page.

Does every page need to list itself?

Yes. Each version must list all versions, including itself, and every version must link back. Missing return links are the most common reason Google ignores hreflang.

From the team behind Lynx

Tools find the work. Lynx does it.

Lynx is an AI agent that builds your backlinks automatically across 2,000+ directories, forums and content platforms. Monitored for 90 days. Your first link is free.