x-default Hreflang

x-default hreflang is a special hreflang value that tells search engines which page to show when no other language or regional version matches the searcher. It acts as the fallback, often pointing to a language selector or a main international version of the page.

How x-default works

Hreflang tags tell Google about alternate versions of a page for different languages or regions, such as en-gb for UK English and de-de for German in Germany. But what should a searcher in Brazil see if you only have UK and German versions? That is where x-default comes in. It marks the page to use when none of the listed versions fits the user’s language or location settings.

A typical set of tags in the page <head> might look like this:

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

When to use x-default

  • Language or country selector pages: a homepage that asks visitors to choose their region is the classic x-default target.
  • A global version: if you have a general English version for everyone outside your main markets, point x-default there.
  • Auto-detecting pages: a page that adapts based on the visitor’s location can be marked as x-default.

x-default is optional. Google has said it is recommended but not required, and hreflang works without it. It is most useful when you serve many markets and want control over what everyone else sees.

How to implement x-default

  1. Choose the fallback page: usually a selector page or your most widely useful version.
  2. Add an x-default entry to every page’s hreflang set, not just the homepage.
  3. Make sure every version lists all alternates, including itself and the x-default, so the annotations are reciprocal.
  4. Use absolute URLs that return a 200 status and are not blocked or set to noindex.
  5. Keep the x-default URL consistent with your canonical tags, so you are not pointing hreflang at a non-canonical page.
  6. Validate the setup with a crawler or hreflang testing tool, then monitor in Search Console.

The same entries can also be placed in HTTP headers or in an XML sitemap instead of the HTML head.

Why x-default matters

Without a fallback, Google picks whichever version it thinks fits best for unmatched users. That might be a page in the wrong language or with the wrong currency. A clear x-default gives you control over the experience for every market you have not specifically targeted, which is useful as an international SEO programme grows into new regions over time.

Common mistakes

  • Pointing x-default at a page that redirects or returns an error.
  • Adding x-default only on the homepage and not on inner pages.
  • Using x-default as if it were a language code, such as x-default-en, which is invalid.
  • Forgetting that x-default does not replace good geotargeting signals and localised content.

Key Takeaways

  • x-default marks the fallback page when no hreflang version matches the user.
  • It often points to a language selector or a global version.
  • It is optional but useful for sites serving many markets.
  • Include it in every page’s reciprocal hreflang set.
  • The x-default URL should be indexable, canonical and return a 200 status.

Related Terms

Not sure how your own site measures up? Request a free SEO review, or keep learning in the SEO Encyclopedia.