Hreflang generator

Enter a page's language or regional versions. Generate tags to add to the head of every version in the group.

  1. Enter each version's language, optional country and URL.
  2. Choose an x-default version if needed.
  3. Copy the tags into every version's <head>.

Hreflang generator

  • Free
  • Runs in your browser
  • No registration
Hreflang tags add to each version's <head>
 

    Which pages belong in one group?

    Hreflang connects equivalent page versions for different languages or regions. For example, a Lithuanian service page and its English translation. Do not group pages on different subjects merely because they use different languages.

    Enter a language code and full HTTP or HTTPS URL for each version. lt means Lithuanian, en English and en-GB English for the United Kingdom. A region code supplements the language; a country code alone cannot replace it. Add a version using the button or remove a row with the cross.

    Applying the generated tags

    If you enter the lt URL https://pavyzdys.lt/paslauga/ and en URL https://pavyzdys.lt/en/service/, the generated set includes both alternatives. Add the same complete set to both pages' head elements. Each page should reference itself and link back to the other versions in its group.

    x-default is an optional version for visitors with no more suitable language or regional alternative. Here, you can select it from the URLs already entered. If you do not need a default, leave 'None' selected. Selecting it neither changes the site's language nor implements visitor redirects.

    What the generator checks and what to check on your website

    The tool checks basic language-code format, HTTP or HTTPS URLs and duplicate codes. If it finds errors, it does not output tags. This does not establish that a code exists in the official language or region lists, or that a URL is the correct translation.

    Open every URL before implementation. Each should resolve to the intended final page, be crawlable and have a consistent canonical. Do not canonicalise all languages to one language just because the content is similar. After implementation, inspect each version's actual HTML, including reciprocal links. The generator does not fetch live pages.

    Frequently asked questions

    Are tags on the Lithuanian page alone enough?

    No. Alternative versions should link back. Include the complete consistent tag set on every page in the group, including a self-reference.

    Can I point every translation to the homepage?

    Only when connecting translated homepages. A service or article translation should link to its equivalent translation, not the other language's general homepage.

    Does hreflang translate text or redirect visitors?

    No. The tags describe existing alternatives to search engines. Translations and website navigation must be implemented separately.

    Does this tool generate a hreflang sitemap?

    No. It produces HTML link tags. This version does not generate sitemap or HTTP-header implementations.

    Other free tools

    All tools

    HTML cleaner

    Remove HTML styles and unnecessary tags while preserving text structure.

    Character counter

    Count characters, words, repeated terms and estimated reading time.

    Google search result preview

    Estimate title and meta-description width in desktop and mobile layouts.

    Want us to handle the technical work?

    Technical SEO