Tell Google which page is for which language

hreflang annotations tell Google that several pages are localized versions of the same content. Google says this helps it point users to the most appropriate version by language or region. It does not use hreflang to detect the language of a page. This generator writes the link tags for the head of each version. It runs in your browser and sends none of your URLs to our servers.

Use codes such as en, pl, de or en-GB. Every address must be a full URL.

Tags for the <head> of every version

The generator needs JavaScript to run in your browser.

Or the same in a sitemap

Runs in your browser. Nothing you paste here is sent anywhere.

How to use it

  1. List every version

    Add the full address of each language version, including https://, with its language code and, if needed, a region code.

  2. Add x-default if you need it

    Point x-default to a page for visitors whose language you do not cover, such as a language selector.

  3. Copy the tags to every version

    Each language version must list itself and all the others, so the same set of tags goes into the head of every version.

What the tags mean

  • Codes

    The first code is the language in ISO 639-1 format, for example en or pl. The optional second code is the region in ISO 3166-1 Alpha 2 format, as in en-GB. Codes outside these standards, such as es-419, are not supported.

  • Return links

    If page A lists page B, page B must list page A. Google names missing return links among the most common mistakes. Annotations without them may be ignored.

  • One method is enough

    HTML link tags, HTTP headers and sitemaps are equivalent for Google. Using all three brings no benefit in Search and is harder to maintain.

Questions

Do translated pages count as duplicate content?

No. Google treats localized versions of a page as duplicates only if the main content stays untranslated.

Can I put hreflang in the sitemap instead?

Yes. HTML tags, HTTP headers and sitemaps are equivalent for Google. Choose the method that is easiest for you to keep up to date.

What is x-default?

A fallback for visitors whose language or region matches none of your versions. It often points to a page where they can choose a language.

Do I need hreflang for a site in one language?

No. hreflang lists the other language or regional versions of a page, so a page without such versions has nothing to list.

All free tools

More languages, added at a steady pace

Ranketto starts in your site's main language and adds one more language every 7 days, so search engines are not flooded with new pages. The Agency plan goes up to 14 languages. Ranketto keeps the sitemap and the language versions up to date.

Sign-ups aren't open yet. Until then, you can follow ranketto.com's own Search Console numbers.