Skip to content
Arrampa
Language: EN, English
Join

Hreflang tag generator

Enter each version of a page with its language and its URL. You get the tags ready to copy into your HTML, your sitemap or the HTTP header, and it warns you about the most common mistakes.

It runs in your browser: what you type isn’t sent anywhere and isn’t saved.

This is a made-up example of a Swiss website in four languages. Replace it with your own URLs.

Check

    HTML tags (in the <head>)

    XML sitemap

    HTTP header (Link)

    How to use it

    1. Add a row for each version of the page: the language code (de, fr, it, en) or the language and region code (de-CH, fr-CH), and its full URL.
    2. Choose the default version (x-default): the one people see if they don’t match any of your languages.
    3. Copy the result in the format your website uses. The same tags go on every version, each one also pointing to itself.

    Bear in mind

    • Each version must link to all the others and to itself. If a page doesn’t link back, Google may ignore the pair.
    • Use full URLs, with https://, that respond with a 200, not with a redirect.
    • The region code comes after the language: de-CH is German for Switzerland. “CH” on its own isn’t valid, and for the United Kingdom the code is GB, not UK.
    • Use a single method: HTML tags, sitemap or HTTP header. Mixing them doesn’t help and makes checking harder.

    Google Search Central: tell Google about localized versions of your page

    In Arrampa

    To understand it in depth

    Glossary terms

    Other free tools

    Want to know when we open?

    One email to confirm and one on the day we open. Nothing else.

    First we ask you to confirm your email; after that we only write on the day we open. Unsubscribe in one click. How we handle your email.