← All tools

Hreflang generator

Build hreflang tags for every language and region, with x-default.
Start from
Language versions
x-default (fallback for everyone else)
Usually your language picker or main homepage.
1 warning
  • Warning: “fr-ca” works, but regions are conventionally uppercase: fr-CA.
  • Note: You have regional “fr-…” versions but no plain “fr”. Consider adding one for fr speakers elsewhere.
  • Note: Put this same set on every page listed, including a link to itself. Hreflang only works when pages link back to each other.
<link rel="alternate" hreflang="en" href="https://example.com/" />
<link rel="alternate" hreflang="en-GB" href="https://example.com/uk/" />
<link rel="alternate" hreflang="de" href="https://example.com/de/" />
<link rel="alternate" hreflang="fr-ca" href="https://example.com/fr-ca/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/" />
● 1 warningHreflang generatorLocal-only

What it’s good for

International SEO without the guesswork.

  • Launch a new localeGenerate the full set of tags for every page.
  • Pick the formatHTML head tags, HTTP headers or sitemap entries.
  • Catch bad codesen-UK and es-LA get flagged before they ship.

Questions

The short answers.

Language or language-region?

Use just the language (de) unless content differs by country (de-AT, de-CH).

What is x-default?

The page for visitors whose language you don't target — often a language picker.

Do pages need to link back?

Yes. Every page in the set must list all the others and itself. Search engines ignore alternates that aren't confirmed by a return link.

Which output format should I use?

HTML link tags in the head are the most common. Use the HTTP Link header for non-HTML files such as PDFs, and sitemap entries when editing every template is impractical. Pick one method per page set, not several.

Does the tool check my live site?

No. It only validates what you type. It never requests your pages, so it can't confirm that the URLs exist or return 200.

See all →