Free tool

Free Hreflang Generator

Fill in the language-URL table, get spec-compliant markup for HTML and XML, and catch local mistakes on the spot. The last step before a multilingual launch starts here.

Language & URL table
x-default row

x-default tells search engines which version to show when nothing matches — usually a language selector or the default version.

Free · No signup · The table stays in your own browser

Local checks found 2 problem(s)

  • #2: missing language code
  • #2: missing URL

What you get

  1. 01

    Both outputs at once

    HTML head link tags and XML sitemap xhtml:link entries.

  2. 02

    Local mistakes flagged inline

    Duplicate codes, invalid BCP 47, non-absolute URLs, one URL for two languages.

  3. 03

    Optional x-default

    Pick which row is x-default — or leave it unset.

Frequently asked questions

What does an hreflang declaration do?

It tells search engines which language/region versions correspond to a page, so a German user sees the German page. It declares the relationship between pages.

Does correct markup mean correct configuration?

No. The declaration must appear on every page it references (reciprocal annotations). This tool checks internal consistency of your table; whether live pages actually pair up needs an online check or Search Console verification.

Should I set x-default?

Optional. x-default names the version shown when no language matches — commonly a language selector or the broadest default. Leave it unset if there's no clear default.

HTML or XML — which one?

Either, not both required: small sites put the links in the HTML head; larger sites declare them in an XML sitemap. Declaring in both is legal but keeping one source is simpler.

Multilingual sites need more than hreflang

Glot Rank's site audit covers indexing, duplicate content, and redirect issues specific to multilingual sites — and keeps re-checking after launch. Sign up for free trial credits.

More free tools