Esc
  • Jump to
  • The board
  • All launchesSort and filter by week or category
  • Open statsEvery number, in public
  • Maker storiesApps that stopped hiding
  • Submit a launch
  • AICategory
  • AnalyticsCategory
  • API & BackendCategory
  • Audio & VoiceCategory
  • AutomationCategory
  • CommunityCategory
↑↓ to move↵ to openPress / anywhere
Sign in

Hreflang Tag Generator for localized pages

Build validated HTML alternate link tags, Next.js App Router metadata.alternates.languages snippets, and XML sitemap xhtml:link blocks with BCP 47 syntax, HTTPS, duplicate, self-reference, and x-default checks.

Free, no sign-up. Everything runs in your browser; nothing you type is sent to us.

Localized URLs and alternates

Google requires each localized page to include a self-referencing hreflang entry and bidirectional return links from every alternate.

Quick-add localeBCP 47 codes + x-default
Locale and HTTPS URL rows
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 Hauntboard

How 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 en or de with an optional ISO 3166-1 Alpha 2 region code such as en-GB or de-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-default fallback 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 →

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.

Launch free →

On the board

All →

Still hiding your app?

Put it on the board. Reviewed by a person, free to launch.

Launch free
Submit a launch