Tools
All toolsHreflang Tag Generator
SEO tool

Show the right language to the right visitor

If your page exists in English, Hindi and Spanish, Google needs to know which one to show in which country. Hreflang tags do that, and they are famously easy to get wrong. This form gets them right.

Generate hreflang tags Free. No sign in. Nothing you type leaves your browser.

Hreflang tag generator

Add one row for each version of the same page.

What it does

Language targeting made manageable

Language and country

Choose a language for each version and add a two letter country code when a page is meant for one country only.

Fallback page

The x default tag names the page for visitors whose language you do not cover.

Catches common errors

The tool warns you about duplicate codes and about a lone tag that would have no effect.

Benefits

What correct hreflang does

Without these tags, Google guesses. Sometimes it shows your Spanish page to readers in India. Sometimes it treats your versions as copies of each other.

1

The right version ranks in each country

Searchers land on the page in their own language and currency.

2

Fewer bounces

People who can read the page stay on it.

3

No duplicate content worries

Similar pages for the US and UK are understood as alternatives, not as copies.

4

Less trial and error

Hreflang mistakes can take weeks to show up. Starting with correct tags saves that wait.

Step by step

How to use it

1

Add each version

Paste the address and choose its language. Add a country code only if the page targets one country.

2

Name a fallback

Usually your main English page or a language chooser.

3

Copy the tags

You get one line per version.

4

Paste them on every version

The same full set of tags must go in the head of each page in the group.

A few tips

Rules that hreflang is strict about

Most hreflang problems come from the same three or four slips.

Good to know

Worth knowing

It guides, not forces

Hreflang is a strong hint. Google can still show another version if it thinks that fits better.

Three places it can live

In the page head, in the sitemap or in server headers. The page head is the simplest.

WordPress users

Translation plugins such as WPML and Polylang add these tags for you.

Help

Questions people ask

What is an hreflang tag?

A tag that tells search engines which language and country a page is meant for, and where its other versions are.

Do I need hreflang for a single language site?

No. It only matters when the same page exists in more than one language or for more than one country.

What does x default mean?

It marks the page to show when none of your listed languages match the visitor.

Do I need a country code?

Only when a version targets one country, such as separate English pages for India and the United Kingdom.

Site in more than one language?

Generate the tags and paste the same set on every version.