Deutsch

x-default is a reserved value of the hreflang attribute. It marks the version of a page meant for users whose language or region matches none of the other listed variants. Often that is a language selector page or the default language.

How does x-default work?

Google describes it as the value used “when no other language/region matches the user’s browser setting” and gives a country or language selector page as a typical use. It is set like any other hreflang entry, in the HTML head, an HTTP header or an XML sitemap, and it needs no language or region code.

The usual rule applies: pages must reference each other. If a page points to the x-default version, that version must point back, otherwise Google ignores the tags.

One URL can carry x-default in addition to a language code, for example an English page marked as both en and x-default. Google’s John Mueller confirmed this at SMX Munich in 2016 and again on Twitter in 2017, as a post by searchVIU (2018) records. Google’s documentation doesn’t spell this case out.

hreflang cluster with four language versionsFour pages de-DE, de-AT, en and x-default all point to each other. Only between en and de-AT the return link is missing: en points to de-AT, but de-AT does not point to en. Google therefore ignores this pair.de-DEexample.com/de-de/de-ATexample.com/de-at/enexample.com/en/x-defaultexample.com/point to each other: validone-way only: pair is ignoredEvery page lists all four versions, including itself.
Four language versions of one page. Each lists all versions, including itself. de-AT does not list en, so Google ignores the one-way link from en to de-AT. Source: Google Search Central: Tell Google about localized versions of your page.

Example

HTML
<link rel="alternate" hreflang="de" href="https://example.com/de/" />
<link rel="alternate" hreflang="en" href="https://example.com/en/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/" />

Here the home page example.com offers the language choice, and visitors with other languages land there.

FAQ

Is x-default required? No, it is an optional addition. It helps when visitors with languages you do not cover should reach a sensible page.

Sources

  1. Tell Google about localized versions of your page – Google Search Centraldevelopers.google.com
  2. x-default hreflang for international pages – Google Search Central Blog (2013)developers.google.com
  3. Why hreflang x-default matters – AdLift (secondary)adlift.com
  4. Can multiple hreflang tags point to one URL? John Mueller of Google says YES. – searchVIU blog (2018)searchviu.com

Last updated: