KitJade
SEO & WebsiteRuns in your browserNew

Hreflang Generator

Create valid hreflang tags for language variants.

Use the Hreflang Generator tool

Runs in your browserUpdated Report a problem

What this hreflang generator does

Hreflang tells search engines which page to serve to a user in a given language and region. The generator builds the `<link rel="alternate" hreflang="…" href="…">` block from rows you add, checking that each code looks like a valid language tag.

Language codes are ISO 639-1 (two letters, such as `en`), and region codes are ISO 3166-1 alpha-2 (two letters, such as `gb`). A value like `en-GB` means English for the United Kingdom; `en` alone means English with no regional preference.

Why use it

  • Add correct annotations to a multilingual site.
  • Avoid invalid region codes that search engines ignore.
  • Ensure an x-default page exists for unmatched languages.

How to use it

  1. 1Add one row per language or region variant.
  2. 2Enter the language tag and the absolute URL of that version.
  3. 3Keep x-default enabled and copy the generated tags into every variant's head.

Worked examples

Two variants

Input

en-GB → https://example.com/uk/ · en-US → https://example.com/us/

Output

Two alternate link tags plus an x-default pointing at your chosen fallback.

Language only

Input

de → https://example.com/de/

Output

hreflang="de" is valid and targets German speakers in any region.

Common mistakes

  • Adding hreflang tags to only one variant; every version must reference the full set, including itself.
  • Using a country code as the language, such as `uk` instead of `en-GB`.
  • Pointing variants at redirected or noindexed URLs.

Frequently asked questions

Is x-default required?
It is strongly recommended. It names the page to show when no language matches, such as an international landing page.
Should each page list itself?
Yes. Reciprocal annotations are part of correct implementation; a page should include its own hreflang entry.
Does hreflang improve rankings?
It does not boost rankings directly. It helps search engines serve the right variant, which can improve relevance and reduce the wrong-language result problem.
All tools