Custom tools
Praha, CZ
Multilingual sites

hreflang generator.

The generator creates hreflang tags that tell search engines which language versions a page has and which to show to whom. Enter the language codes and URLs; the tool checks the ISO format, full addresses, duplicates and the presence of x‑default. You get the result as HTML tags for the head and as a fragment for your sitemap.

Where to send users whose language you don't have. Usually the English or main version.
HTML <head>
    sitemap.xml

    Every language version must link to all others and to itself, or Google ignores the tags. Codes per ISO 639-1, region optional per ISO 3166 (en-GB).

    Runs entirely in your browser. Nothing is uploaded or stored.

    How to use it

    03
    1. Step01

      Enter the language versions

      A language code (cs, en, de, or with a region like en-GB) and the full URL of each version.

    2. Step02

      Set x-default

      The version for all other languages, usually English.

    3. Step03

      Add the tags to every version

      The same block goes on all language versions of the page, including a link to itself.

    The most common mistakes

    • Missing return link. The Czech version links to the English one but not the other way round.
    • Relative URLs. hreflang needs full addresses with https://.
    • Linking to a redirected or noindex page. The target must return 200 and be indexable.
    • Wrong code. For the United Kingdom it’s en-GB, not en-UK.
    • Conflict with canonical. Each language version has a canonical pointing to itself, not to another language.

    This website has five language versions and an automatic test checks their hreflang tags on every build.

    FAQ04

    Questions people ask

    01When do I need hreflang?

    When you have the same content in several languages or for several countries. Without hreflang Google may show the English version to Czech users, or treat versions as duplicates.

    02Why must a page link to itself?

    hreflang only works both ways: each version must list all the others and itself. If the return link is missing, Google ignores the tag.

    03Should I use cs or cs-CZ?

    For Czech, cs is enough, since it's used almost only in Czechia. Add a region where a language differs by country, for example en-GB and en-US, or de-DE and de-AT.

    04Does Seznam use hreflang?

    Seznam focuses mainly on Czech content. hreflang is for Google and Bing, but it doesn't hurt Seznam, and clearly separated language versions help everyone.

    Next step01

    What next

    Related06

    Keep going

    Got work a program should be doing?

    I am still setting up contact. Meanwhile, try the tools that already work.

    Contact