View packages
World map assembled from teal, navy and orange puzzle pieces, connected by dotted curved lines with link icons, representing multilingual hreflang SEO across regions

If your website serves more than one language or region, you have probably run into a frustrating problem: Google keeps showing your French visitors the English page, your German page barely ranks in Germany, or your translated pages seem to compete against each other in search results.

On this page
  1. What Hreflang Does (and Doesn’t Do)
  2. Hreflang vs Canonical vs Geo-Targeting
  3. Correct Hreflang Syntax
  4. A Real-World Hreflang Example
  5. The Self-Referencing Rule
  6. Bidirectional Linking (Return Tags)
  7. Using x-default Correctly
  8. Hreflang for Single-Language, Multi-Region Sites
  9. Common Hreflang Errors That Kill International Rankings
  10. Implementation Methods Compared
  11. How to Validate Your Hreflang
  12. Hreflang Maintenance: Keeping Tags Accurate Over Time
  13. FAQs

The fix for all of this is one small HTML annotation — hreflang — and following hreflang best practices is one of the highest-leverage tasks in international SEO. This guide covers hreflang best practices the way a practitioner would actually use them: the exact syntax, the rules Google enforces (self-referencing, bidirectional linking, x-default), the errors that silently kill international rankings, and how to choose between the three implementation methods. Hreflang also interacts with your site architecture — see our internal linking guide for how link structure supports international pages.

Puzzle-piece globe connected by dotted lines, symbolizing hreflang for multilingual SEO

What Hreflang Does (and Doesn’t Do)

Hreflang is an HTML attribute that tells Google which language and regional version of a page should be served to which audience. Understanding what it does — and does not — do is the foundation of hreflang best practices. When you have an English page for the US and a German page for Germany, hreflang tags help Google show the right version to the right searcher instead of guessing.

Two important clarifications:

Hreflang vs Canonical vs Geo-Targeting

Three different tools, three different jobs — mixing them up is where most international SEO goes wrong:

The critical rule in hreflang best practices: every page in an hreflang cluster must have a self-referencing canonical pointing to itself — never canonicalize a translated page to another language’s version. A canonical to a different language page tells Google the translation is a duplicate, and hreflang cannot override that. If you use ccTLDs (example.de, example.fr), you usually do not need geo-targeting settings at all — the domain already declares the country — but you still need hreflang to connect the language versions.

Correct Hreflang Syntax

Hreflang is implemented with link elements in the the page head of each page, one per language/region version:

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

The language code rules are strict:

Google’s official documentation on localized versions of pages is the authoritative reference for hreflang best practices.

A Real-World Hreflang Example

Imagine a SaaS company with a pricing page in four versions: English for the US, English for the UK, German for Germany, and a global fallback. Every one of these four pages carries the complete set of four tags — not just the tags for “the other” versions:

<!-- On https://example.com/pricing/ (US English) -->
<link rel="alternate" hreflang="en-us" href="https://example.com/pricing/" />
<link rel="alternate" hreflang="en-gb" href="https://example.com/uk/pricing/" />
<link rel="alternate" hreflang="de" href="https://example.com/de/preise/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/pricing/" />

<!-- On https://example.com/de/preise/ (German) -->
<link rel="alternate" hreflang="en-us" href="https://example.com/pricing/" />
<link rel="alternate" hreflang="en-gb" href="https://example.com/uk/pricing/" />
<link rel="alternate" hreflang="de" href="https://example.com/de/preise/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/pricing/" />

Notice the German page includes the tag pointing to itself (hreflang="de") — that is the self-referencing rule in action — and that both pages list all four versions, which is what makes the linking bidirectional. When a fifth version (say, French) is added later, all five pages must be updated. This is exactly why hand-editing tags breaks at scale and why the practical fix is generating them programmatically from a single source of truth.

The Self-Referencing Rule

Every page in an hreflang cluster must include a hreflang tag pointing to itself. This is the #1 violation of hreflang best practices in the wild. The logic is simple: Google validates the cluster as a whole, and a page that references its translations but not itself looks like a page that hasn’t declared its own language — so the annotation gets ignored for that page.

In practice, this means your hreflang generation logic must run on every page in the cluster with the full version list, never on “the original plus the translations.” If your CMS template renders hreflang from a per-page field, make that field a multi-value list that always includes the current page’s own URL and language code. Rule of thumb: hreflang is a property of the cluster, not of any single page.

Bidirectional Linking (Return Tags)

Hreflang best practices require bidirectionality: if page A references page B, page B must reference page A. A one-way hreflang reference is treated as an error and ignored — Google will not honor a cluster where the English page points to the German page but the German page doesn’t point back. This is the error that appears most often after a site launches a new language: the new translated pages get correct tags, but nobody updates the older pages to link back, and the whole cluster silently fails validation.

The practical fix is to generate hreflang programmatically from a single source of truth rather than hand-editing tags page by page. Keep one canonical mapping of page-groups to their language/region URLs (a CMS field, a config file, or a database table), and render the full tag set from it on every page load or at build time. One source of truth makes one-way references structurally impossible.

Cluster of page cards joined by double-headed arrows, representing hreflang return links

Using x-default Correctly

Hreflang best practices treat x-default as the fallback page — the URL Google should show when a searcher’s language or region matches none of your defined versions. x-default is not “the main version.” Only point it at a page that genuinely serves everyone else.

Common x-default mistakes: pointing it at your highest-traffic page “because that’s the main one,” or omitting it entirely. If you have a language-selector or country-selector page, that is usually the best x-default target. If you do not, point x-default at the version most international visitors can use — typically your default-language homepage.

Hreflang for Single-Language, Multi-Region Sites

You do not need multiple languages to need hreflang. If you have separate English pages for the US, UK, and Australia — with regional spelling, pricing, and contact details — those pages are near-duplicates that compete with each other. Hreflang with region codes (en-us, en-gb, en-au) tells Google which one to show where, turning a cannibalization problem into clean regional targeting.

The catch: the pages must actually differ in ways that matter to the region. Swapping “color” for “colour” on an otherwise identical page is not enough — Google may treat the versions as duplicates and the hreflang as decorative. Regional pricing, shipping information, local contact details, and locally relevant examples are what make multi-region pages genuinely distinct. Hreflang organizes good localization; it cannot substitute for it.

Common Hreflang Errors That Kill International Rankings

  1. Missing self-referencing tags. Pages reference their translations but forget themselves.
  2. Missing return links. Translations added without updating the original pages.
  3. Wrong language or region codes. Typos, invented codes, or region-alone codes.
  4. Hreflang pointing to redirected or 404 URLs. Hreflang URLs must return 200 and be the final destination — no redirects.
  5. Conflicting canonicals. Every page in an hreflang cluster must have a self-referencing canonical.
  6. Hreflang on near-identical thin machine-translated pages. The tags get honored but the pages get filtered.
  7. Mismatched implementation across methods. Head tags say one thing, the XML sitemap says another.

Implementation Methods Compared

Pick ONE method per site. Consistency is one of the core hreflang best practices.

For non-HTML files, the HTTP header approach looks like this (one Link header per version, comma-separated on a single response):

Link: <https://example.com/en/report.pdf>; rel="alternate"; hreflang="en",
      <https://example.com/de/bericht.pdf>; rel="alternate"; hreflang="de",
      <https://example.com/en/report.pdf>; rel="alternate"; hreflang="x-default"

For large sites, the XML sitemap method keeps everything in one place. Each a url entry lists its alternates with xhtml:link children — and the sitemap must declare the xhtml namespace (xmlns:xhtml="http://www.w3.org/1999/xhtml") or Google ignores the annotations. The same rules apply: every version of a page lists every version including itself, and the sitemap must be regenerated whenever URLs change.

Ahrefs’ hreflang guide walks through these methods with additional examples if you want a second reference alongside Google’s documentation.

How to Validate Your Hreflang

  • Google Search Console → International Targeting. Check it monthly, and after every site change that touches URLs.
  • Third-party hreflang validators. Run one before any launch.
  • Screaming Frog (free tier, 500 URLs). Audit the full cluster for consistency.
  • An automated technical crawl. Run a free SEO audit to surface technical issues that silently invalidate hreflang tags.

Validate after every site change that touches URLs. Hreflang best practices make validation a habit: hreflang is not a one-time implementation; it’s an ongoing maintenance item for any international site. The most common validation failure is a tag pointing at a URL that redirects — which is why the redirect check belongs in your pre-launch routine, not your annual audit.

Hreflang Maintenance: Keeping Tags Accurate Over Time

Hreflang breaks gradually. A redesign changes URL structures, a CMS migration drops the template logic, a new market launches and the old pages never get updated. Build these habits so the cluster stays valid:

  • Regenerate tags on every URL change. If your hreflang is generated from a single source of truth, URL changes flow through automatically. If it is hand-coded, every redirect you create is a potential broken hreflang reference — audit the cluster after migrations.
  • Monitor for redirecting or 404 hreflang targets. Run your hreflang validator monthly, not just at launch. Pages get unpublished, slugs change, and each dead target invalidates the annotations pointing at it.
  • Update all pages when adding a language. A new translation is not done when its own tags are correct — it is done when every existing page in the cluster references it back. Make “update the full cluster” part of your launch checklist for every new locale.
  • Watch Search Console’s international targeting report. A sudden spike in hreflang errors after a release usually means a template change broke the tag rendering. The report tells you which URLs are affected so you can trace the pattern.
  • Keep sitemaps and head tags in agreement. If you ever switch implementation methods, remove the old annotations completely. Two methods disagreeing with each other is worse than one method with gaps.

FAQs

Do I need hreflang if I only have one language? Only if you have separate regional versions of that language (US vs UK English, for example). A single English site with no regional variants does not need hreflang.

Can hreflang fix duplicate content penalties? There is no duplicate-content penalty for legitimate translations — hreflang’s job is to make sure the right version ranks in the right place. It does not rescue thin or machine-translated pages from quality filters.

Should hreflang and canonical ever point to different URLs? Yes — and they usually do. Canonical points to the page itself (self-referencing); hreflang points to all versions including itself. They conflict only when canonical points to a different page than the one carrying it.

How long until hreflang changes take effect? Weeks, typically. Google must recrawl every page in the cluster and process the annotations together. Validate, then be patient — rechecking daily does not speed it up. Follow these hreflang best practices once, maintain them on every site change, and international targeting largely takes care of itself.

Done-for-you podcast backlinks

Get your brand on Apple Podcasts, Spotify, Amazon and 25 more trusted platforms — placed by hand, reported link by link.