BF50 Black Friday · 50% off all plans
from $5/mo · Auto-applied ---:--:-- Claim 50% off →
Skip to content

Search Seonio

Type a keyword, domain, or paste a URL

Start free with $1 to see full results. Powered by Seonio
SEO

X-default: The fallback page in your hreflang set

x-default is the hreflang value that names a fallback page for visitors whose language you don't serve, such as a language selector or global home page.

Monthly searches · x-default
480
Keyword research data
x-default
X-default: The fallback page in your hreflang set
Click the image to view it full size

Most hreflang values name a language or region, like de or en-GB. x-default names none: it marks the page Google should show when a searcher's language or region matches none of your versions Google Search Central. It's one more line in your hreflang set:

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

Say this site has English and Spanish pages. A searcher whose browser is set to French matches neither, so Google sends them to https://example.com/, the x-default page. Without that line, you haven't told Google where unmatched visitors should go.

Which page to make your x-default

Google names three good choices:

  • A language or country selector. Google says x-default was designed for these pages and works best with them.
  • A home page that adapts to the visitor, showing different content based on their location or browser language.
  • The version you consider the default, often English, for everyone you don't serve with a specific version.

The page doesn't need a language of its own. It's for people whose language you don't cover, so any language can serve, as long as those visitors can find their way from it.

How to add x-default

x-default follows the same rules as the rest of your hreflang set:

  • Add it to every version. Each page in the set lists itself, all the other versions and the x-default page. Use the same x-default URL on every one of them.
  • Use full URLs, including https://, not relative paths like /en/.
  • Pick one method. You can put the set in the HTML <head>, in HTTP headers or in your XML sitemap. Google treats them the same, and using more than one gives no extra benefit, only more to maintain.
  • Keep canonicals in step. Each version's canonical tag should point to a page in the same language. Don't point every version's canonical at the x-default page.

x-default is optional; Google says to "consider" adding it. It's most useful on sites whose versions don't cover every language their visitors speak.

Mistakes to avoid

  • Using a language code instead. hreflang="en" targets English speakers. Only x-default says "everyone else".
  • Leaving it off some versions. If the x-default line is only on the home page, the other pages in the set don't carry the fallback.
  • Redirecting automatically by guessed language. A selector or adaptive home page is fine as the x-default, but Google advises against redirecting people to another language version based on what you think they speak. Let them switch instead.
  • Expecting a ranking boost. hreflang and x-default help Google choose which of your versions to show each searcher. Google doesn't describe them as a way to rank higher.

Does x-default help Google find pages?

It can. Google has said that URLs in hreflang annotations, including x-default, may be used to discover pages and schedule them for crawling Google Search Central Blog. That helps most on large sites, where some language versions sit deep in the structure.

Google introduced x-default in April 2013. For the bigger picture of serving several countries and languages, see international SEO and rel="alternate".

Seonio

Put it to work on your own site

Keyword research, traffic, backlinks and clustering in one place. Start with a free $1 to test, no card required.