Localized URLs and alternates
Google requires each localized page to include a self-referencing hreflang entry and bidirectional return links from every alternate.
x-default- Valid locales
- 5
- x-default
- Present
- Self-reference
- Matched
- Issues
- 0
<link rel="alternate" hreflang="en-US" href="https://yourproduct.com/en-us/pricing" />
<link rel="alternate" hreflang="en-GB" href="https://yourproduct.com/en-gb/pricing" />
<link rel="alternate" hreflang="de-DE" href="https://yourproduct.com/de-de/pricing" />
<link rel="alternate" hreflang="fr" href="https://yourproduct.com/fr/pricing" />
<link rel="alternate" hreflang="x-default" href="https://yourproduct.com/pricing" />Paste these tags inside the <head> of every localized page in the cluster.
Expanding into international markets? Submit your product on Hauntboard for human review, public visit counts, and a clean dofollow link.
Launch free on HauntboardHow Hreflang Prevents Duplicate International Results
The hreflang attribute maps language and regional versions of the same page so search engines serve the right currency, spelling, and localized copy to each visitor.
- Valid BCP 47 codes: Combine an ISO 639-1 language code such as
enordewith an optional ISO 3166-1 Alpha 2 region code such asen-GBorde-DE, never a country code alone. - Self-referencing canonicals: Every localized URL needs its own self-referencing canonical URL rather than pointing canonicals from French or UK pages back to US English.
- Bidirectional return links: All pages in a localized cluster must cross-link to one another, plus an optional
x-defaultfallback for unmatched locales.
Implementing Hreflang in Next.js and XML Sitemaps
For App Router projects, paste the generated alternates.languages object into your route metadata and review our SEO guide for Next.js SaaS sites and canonical URLs and redirects guide.
If your localized routes span dozens of templates, publishing xhtml:link entries inside an XML sitemap keeps markup out of HTML heads. Read our full hreflang and multilingual SEO guide or build your main route map with the XML Sitemap Generator.
Common questions
- When do I need hreflang tags on a SaaS site?
- If your site serves one language only, you do not need hreflang tags. Add them when you publish translated pages or localized regional variants such as US English, UK English, German, or French pricing and landing pages.
- Why does Google require bidirectional return links and self-referencing tags?
- Every localized URL must list itself and point to all alternate versions, and each alternate must point back. Without bidirectional return links, Google ignores hreflang annotations so third-party domains cannot spoof language relationships.
- What is hreflang="x-default" used for?
- The x-default value tells search engines which fallback URL to show when a searcher's language or region does not match any of your explicit locale entries, such as a global English page or a country selector.
- Why is en-uk flagged as invalid?
- Google requires ISO 639-1 language codes and ISO 3166-1 Alpha 2 region codes. The official code for the United Kingdom is GB, so UK English must be written as en-GB rather than en-uk.
- Should I put hreflang in HTML, Next.js metadata, or an XML sitemap?
- All three formats are treated as equivalent by Google. HTML link tags or Next.js metadata.alternates.languages work well for smaller sites, while an XML sitemap with xhtml:link entries keeps large multilingual catalogs easier to audit in one file.
More free tools
All free tools →- Free toolLive Launch Readiness CheckerInspect any live URL for HTTPS, title, meta description, canonical, Open Graph cards, JSON-LD and AI search crawler access.
- Free toolDofollow & Backlink Attribute CheckerCheck any live directory or launch listing to see if it links to your domain with a real dofollow, nofollow, ugc or sponsored attribute.
- Free toolKeyword Matrix & Intent GeneratorGenerate high-intent long-tail keywords, competitor alternative clusters, and transactional search terms for your SaaS.
Ready to launch? Put it on Hauntboard.
A person reviews every launch. It goes on the board, gets a permanent page Google and AI search can find, and a public count of every visit we send you.