hreflang x-default: Choose the Right Fallback URL
hreflang="x-default" is an extra entry in a complete language or regional alternate set. It points users whose language or region does not match a listed version to a fallback URL, such as a language selector or the site’s default-language page.
It is not a replacement for hreflang="en", it is not a canonical tag, and it is not required on every page of a multilingual site. The first decision is whether the URLs are equivalent localized versions at all. If two articles were independently researched for different queries, keep them self-canonical and use an internal link instead.
Choose the right x-default destination
Google describes three practical fallback shapes in its x-default guidance:
| Site situation | x-default target | Why |
|---|---|---|
| Several localized versions and no safe default language | Language or country selector | The visitor can choose the supported experience. |
| One default language is the useful fallback | The default-language version | Unmatched visitors still reach a complete article or landing page. |
| The URLs are independent articles, not translations | No x-default relationship | Shared technology or tags do not create a localized alternate set. |
The selector is usually the clearest choice when the site serves several regions. A default-language page can be reasonable when it is genuinely the fallback experience, but do not point every unrelated page at the homepage just to add an x-default tag.
Add x-default to the same reciprocal set
Suppose an article has English and Traditional Chinese equivalents, with a language selector for all other visitors. Every localized page should expose the same set:
<link rel="alternate" hreflang="en" href="https://example.com/en/posts/widget-guide/" /><link rel="alternate" hreflang="zh-Hant" href="https://example.com/posts/widget-guide/" /><link rel="alternate" hreflang="x-default" href="https://example.com/language/" />The language pages should list themselves and the other alternate URLs as well. x-default is not a language code, so it does not need a country suffix. Use fully qualified URLs and the exact hostname and trailing-slash convention that the production site serves.
If one side is missing the return set, fix that relationship before deciding whether the fallback is correct. The hreflang no-return-tags guide covers the reciprocal validation failure; x-default adds one member to the set but does not relax the reciprocity requirement.
Do not use x-default to pair independent content
An English article can discuss the same framework as a Traditional Chinese article without being a translation. Those pages may be valuable internal links, but they do not represent the same primary article for another language audience.
For those pages, keep:
- a self-referencing canonical URL;
- the correct
langvalue in the document; - an English or Traditional Chinese title and description written for that page’s query;
- no article-level
hreflangorx-defaultunless an equivalent localized page exists.
The existing guide to independent multilingual content explains this create-versus-pair decision. Adding x-default to an unrelated page set can make a markup audit look complete while making the editorial relationship less accurate.
Verify the deployed HTML
Inspect the source received by a crawler, not just the template or CMS data:
curl -fsSL 'https://example.com/en/posts/widget-guide/' \ | rg 'rel="alternate"|hreflang='
curl -fsSL 'https://example.com/posts/widget-guide/' \ | rg 'rel="alternate"|hreflang='For each page in the set, check that:
- the page lists itself;
- every equivalent localized page appears with the intended language code;
- the same
x-defaultURL appears on every member; - all
hrefvalues are absolute and return the intended final URL; - the canonical remains self-referencing on each localized page.
If a reverse proxy changes a hostname, strips a trailing slash, or serves a cached head, the rendered HTML is the evidence to use for the next fix. Do not infer success from a source map or a local component alone.
Keep x-default optional
A multilingual site can have hreflang on only part of its URL set. Add x-default when it describes a real fallback for unmatched languages or regions; omit it when the site has no equivalent alternate set or when the fallback would be arbitrary.
The goal is not to maximize the number of alternate tags. The goal is to help a visitor reach the right version without claiming that independent content is a translation.
Takeaway
Use hreflang="x-default" as a language-neutral fallback inside a complete reciprocal set. Point it to a selector or a deliberate default page, and keep independently written multilingual articles self-canonical without an artificial alternate relationship.
FAQ
Q: Is hreflang="x-default" required for every multilingual page?
A: No. Google documents it as a fallback for unmatched languages or regions, especially for language selectors. It is optional when the site has no appropriate fallback or no equivalent localized set.
Q: Should x-default always point to the English page?
A: No. It can point to a language selector, the default-language page, or another intentional fallback. Choose the URL that best serves visitors whose language is not represented by the listed alternates.
Q: Can related English and Chinese articles share an x-default tag?
A: Only when they are equivalent localized versions of the same article. Independent articles should use normal internal links and self-canonical URLs, not hreflang or x-default.
References:
Report a typo or broken link, or suggest a related topic.