Contents
WrixooTools

SEO and digital marketingPractical SEO advice for small businesses

Hreflang vs Canonical: How to Use Both Without Breaking Indexing

Hreflang targets language and region, canonical consolidates duplicates. Learn the correct pairing, the errors that break indexing, and a quick audit checklist.

By Marta EllisonPublished 6 min read

Hreflang and canonical are not interchangeable, and treating them as such is the fastest way to get the "Alternate page with proper canonical" status in Search Console while your localized pages fail to index. The rule: every hreflang annotation must be self-referencing and must point to the canonical URL of that same language version, never to a different language. Canonical consolidates duplicate URLs; hreflang tells Google which language or region version to serve. When the two conflict, Google usually follows the canonical, and your hreflang cluster collapses.

This guide explains when to use hreflang, how canonical differs, and how to pair them across multilingual and multi-regional sites. It also covers the most common implementation errors, from homepage-only hreflang to canonical tags that point across language folders, and gives you a checklist to audit your setup.

Key points

  • Hreflang targets language and region; canonical consolidates duplicate URLs within one language.
  • Each hreflang entry must point to the canonical URL of the same language version, never to a different language.
  • Homepage-only hreflang is a common mistake that leaves inner pages without language signals.
  • Audit for self-referencing hreflang and matching canonical tags to avoid "Alternate page with proper canonical" warnings.

What hreflang actually does (and when you need it)

Hreflang is an HTML attribute (or XML sitemap annotation) that tells search engines which language and optional region a page is intended for. You need it when you have multiple language versions of the same content, or multiple regional versions in the same language (for example, English for the US, UK, and Australia). It does not consolidate duplicate content and it does not replace canonical tags. It only signals language and region targeting. Language codes follow the ISO 639-1 standard and region codes the ISO 3166-1 alpha-2 standard, so a tag like en-GB is built from two stable, machine-readable parts.

A common misconception is that hreflang is only needed on the homepage. In practice, every page that has an alternate language version must carry the annotation, or be listed in an XML sitemap with the full cluster. Homepage-only hreflang makes cross-tagging impossible and often causes the wrong language version to rank in local markets.

  • Use hreflang when the same page exists in more than one language or regional variant.
  • Do not use hreflang to fix duplicate content within one language; use canonical for that.
  • Every hreflang cluster must be reciprocal: if page A points to B, B must point back to A.
  • Include a self-referencing hreflang for every page in the cluster.

What a canonical tag does (and what it is not)

A canonical tag (rel="canonical") tells search engines which URL is the preferred version when multiple URLs serve the same or very similar content. It consolidates ranking signals to one URL. A canonical URL is not the same as a URL: a URL is any addressable resource, while a canonical URL is the one you declare as the master copy. For example, if a product page is accessible with and without tracking parameters, the clean URL should be canonical.

Canonical tags are not a directive; Google may ignore them if other signals contradict them. They also do not solve language targeting. If you canonicalize the German page to the English page, you are effectively telling Google the German page is a duplicate, and it may drop it from the index. The rel attribute itself is part of standard HTML link semantics, documented in the HTML specification family.

  • Canonical consolidates duplicate or near-duplicate URLs within the same language.
  • A canonical example: /product and /product?color=blue both canonicalize to the clean product URL.
  • Never canonicalize a language version to a different language version unless you intend to remove it from the index.
  • Canonical tags can be implemented in the HTML head or via an HTTP header for non-HTML files.

The correct way to combine hreflang and canonical

The safe rule is simple: each hreflang annotation points to the canonical URL of that same language version. If your German page canonicalizes to itself, its hreflang entry should also point to itself. If your German page has a duplicate URL (for example, with a session parameter), that duplicate should canonicalize to the clean German URL, and the hreflang cluster should reference only the clean German URL.

In practice, this means hreflang and canonical must agree. If the German page's canonical points to the English page, the German hreflang entry is contradictory and Google may ignore the entire cluster. This is the root cause of many "Alternate page with proper canonical" warnings: the page correctly points to a canonical, but that canonical is in a different language, so the page is treated as an alternate rather than an indexable localized page.

  • Self-referencing hreflang + self-referencing canonical = safe.
  • Hreflang pointing to a URL that canonicalizes elsewhere = broken cluster.
  • Use absolute URLs in both hreflang and canonical tags.
  • Keep the hreflang cluster and canonical logic in the same template or sitemap generation process.

Common implementation mistakes that break indexing

The most frequent error is applying hreflang only to the homepage. Another is using hreflang on ccTLDs without language annotations, assuming the country code is enough. Search engines' interpretation of ccTLDs is not perfect, especially in multilingual countries like Switzerland or Belgium, so hreflang remains necessary even with country-code domains.

A third mistake is mixing canonical and hreflang across different domains without a clear pattern. If your German site is on a .de domain and your English site on a .com, each page should canonicalize to itself and hreflang should cross-reference the other domain's canonical URL. If you canonicalize the .de page to the .com page, you are telling Google the .de page is a duplicate, and it may not rank in Germany.

  • Homepage-only hreflang: common but ineffective for inner pages.
  • Canonical pointing across language folders: kills localized indexing.
  • Missing return links in the hreflang cluster: annotations ignored.
  • Using relative URLs in hreflang: can cause parsing errors.

How to audit your hreflang and canonical setup

Start by crawling your site and extracting all hreflang and canonical tags. Check that every hreflang URL returns a 200 status, is self-referencing, and has a return link. Then verify that the canonical URL for each page matches the URL used in its own hreflang entry. Any mismatch is a red flag.

In Google Search Console, review the "Alternate page with proper canonical" status under Page indexing. If localized pages are marked as alternates, inspect the canonical and hreflang tags on those pages. For a broader technical cleanup, see our guide on fixing indexing problems in Search Console.

  • Crawl and extract all hreflang and canonical tags.
  • Verify self-reference and return links for every cluster.
  • Check that canonical and hreflang point to the same URL.
  • Monitor Search Console for alternate page warnings.

Worked example: a three-language product page

Suppose you sell a shirt in English (US), German, and French. Each language version has a clean URL and a duplicate URL with a tracking parameter. The table below shows the correct canonical and hreflang targets. Note that every hreflang entry points to the clean canonical URL of the same language, and each page canonicalizes to itself.

If you instead canonicalized the German page to the English page, the German page would likely be treated as an alternate and might not rank in Germany. The hreflang cluster would also be inconsistent, and Google could ignore the entire set.

Example: correct canonical and hreflang pairing for a three-language product page
LanguageClean URLDuplicate URLCanonical targetHreflang target
English (US)/en/product/en/product?ref=1/en/product/en/product
German/de/produkt/de/produkt?ref=1/de/produkt/de/produkt
French/fr/produit/fr/produit?ref=1/fr/produit/fr/produit

Checklist before you ship

Before deploying a multilingual site, run through this checklist. It prevents the most common indexing failures and keeps your hreflang and canonical signals aligned.

If you need to estimate the traffic value of your international pages, use our SEO Traffic Value Calculator to model potential gains. For a deeper dive into site structure, read our website architecture guide.

  • Every page with an alternate has hreflang, not just the homepage.
  • Each hreflang entry is self-referencing and reciprocal.
  • Canonical and hreflang point to the same URL.
  • Absolute URLs used throughout.
  • XML sitemap includes hreflang annotations if used.
100Homepage60Category pages45Product pages30Blog posts
Example: share of pages with self-referencing hreflang in a typical audit (%)

Frequently asked questions

When to use hreflang? Use hreflang when the same page exists in more than one language, or in regional variants of the same language such as en-US, en-GB, and en-AU. It tells search engines which version to serve to users in a given language or region. It is not needed for duplicate content within a single language; use canonical for that.

What is the difference between a URL and a canonical URL? A URL is any addressable resource on the web, including parameterized and duplicate variants. A canonical URL is the preferred version you declare when several URLs serve the same or similar content. The canonical tag consolidates ranking signals to that preferred URL.

What is a canonical example? If a product page is accessible at both /product and /product?color=blue, you add a canonical tag on both versions pointing to /product. This tells search engines the clean URL is the master copy. The same logic applies per language: the German duplicate canonicalizes to the clean German URL, not to the English one.

For faster indexing of updated pages, see our guide to Bing IndexNow setup.

Marta Ellison · Editor. Marta has spent years helping small businesses make sense of search marketing without the jargon. She focuses on practical SEO audits, local visibility and content strategy for owner-run companies. Her writing aims to turn confusing ranking advice into steps anyone can follow.

SEO Traffic Value Calculator

Related

Cookie Preferences

Required for the site to function, such as storing your cookie consent choice and security measures.

Not used on this site.

Not used on this site.