Understanding x-default hreflang and When to Use It

Questions:

  • What is x-default in hreflang?
  • Should x-default have a language prefix?
  • Is x-default mandatory?
  • Can x-default point to a language page?

Tags: x-default, hreflang, google-guidelines, seo-best-practices

Description:

The x-default hreflang attribute tells Google which page to show when no language or region matches the user. This article explains correct usage and common mistakes.

Solution:

  1. Choose a neutral or global version of the page
  2. Ensure the URL has no language prefix
  3. Add hreflang="x-default" in all language versions
  4. Verify consistency across HTML and sitemap

Tips and Tricks:

💡 Things to keep in mind
  1. Never point x-default to /de/ or /en/

  2. Best use case: language selector or global homepage

  3. Incorrect x-default can invalidate the entire hreflang setup

Subscribe to our newsletter

Stay informed at all times. We will gladly inform you about product news and offers.