Skip to main content
Utilnivo

SEO & Webmaster

Utilnivo

Hreflang Generator

Generate hreflang alternate link tags.

No registration
  • On your device

Browse more in SEO & Webmaster or all tools.

Private on your device

Your information stays on your device and is not uploaded.

Enter language (and optional region) codes with alternate page URLs to generate reciprocal hreflang link tags, including optional x-default. Copy tags into each locale page so every alternate references the others—this builder does not crawl your site. Validate live markup after deploy.

How to use this tool

1. Add each language (and optional region) with its absolute URL. 2. Optionally set x-default. 3. Generate tags. 4. Paste into each alternate page so every locale references the others. 5. Validate with a live crawl or Search Console International Targeting notes.

Worked example

Example 1: en-US, fr-FR, and x-default for a product page set. Example 2: language-only codes (en, de) when you do not need regional variants.

When to use this

  • Launching a multilingual site section.
  • Adding a new locale to an existing set.
  • Including x-default for language choosers.
  • Fixing missing return links after a CMS export.
  • Documenting hreflang for developers.

Common examples

  • en-US + fr-FR product URLs with reciprocal tags.
  • Add x-default pointing at the language chooser.
  • Language-only en/de when regions are not needed.
  • Catch missing return link from FR back to EN.
  • Absolute https URLs only—relative paths break hreflang.

Common mistakes

  • Using relative URLs.
  • Omitting self-references.
  • Mismatched language codes (en-UK vs en-GB).
  • Pointing all locales at one URL.
  • Expecting the generator to crawl your site.

How it works

Builds reciprocal hreflang link tags from language/region codes and alternate URLs, including optional x-default. You copy the tags into page HTML or your CMS—this does not crawl your site.

Limitations

Results are based on the inputs you provide and may not cover every edge case. This tool is for general use and is not professional advice.

Privacy and file handling

Your data stays on your device and is not uploaded.

Formula or method

Each locale page should list all alternates including itself. Missing return links break reciprocity and can confuse crawlers.

FAQ

Frequently asked questions

What does the hreflang generator create?

HTML link tags (or equivalent annotations) that tell search engines which language/region URL is the alternate for each page in a set.

Do I need x-default?

Optional but useful when you have a language chooser or global landing page that should serve users without a matching locale.

Why must tags be reciprocal?

Each locale page should reference all alternates including itself. One-way links can be ignored by crawlers.

Page last reviewed: