A canonical URL is the representative address for a set of duplicate or very similar pages. You can declare a preferred version; Google decides which version to select. Those choices can differ.
For example, an auto-parts store may show the same brake pumps at a category URL and a price-sorted URL. It wants search visitors to reach the main category while shoppers can still choose their preferred order. Canonicalization addresses that duplication without removing the sorting function.
What Is a Canonical URL?
In this example, /brake-pumps/ is the preferred category address and /brake-pumps/?sort=price is an alternate view of the same products. If Google groups them together, it chooses one representative. The other URL is non-canonical within that group, but can still work for shoppers.
Some duplication is normal and is not automatically a spam violation. Selecting a representative helps Google consolidate signals associated with equivalent URLs and reduces confusion over which address represents the content.
Which Page Should Represent the Content?
Compare the main content before looking at the URL format. A sorting parameter may change only the order, while a vehicle filter can change the product selection and fitment advice. A dedicated model page with a distinct purpose should not automatically point its canonical to the broad category.
Pagination needs the same care. Page two of a catalogue usually contains different products from page one; give it its own canonical rather than treating it as a duplicate of the first page.
For equivalent pages, choose the version you want a search visitor to open: relevant, accessible and eligible for indexing. Use its final address in navigation, contextual links and the XML sitemap. Shoppers can still use links that change the sorting order. The site-architecture guide explains how to separate genuinely different page roles.
Translated content also needs a separate decision. An English category and its properly translated Chinese version serve different language users; do not point every language's canonical at the English page. Choose a representative within each language and use hreflang to connect the language alternatives.
How Do You Signal Your Preferred URL?
For HTML pages, place a rel="canonical" link in the document's <head>. The sorted page in the example would declare:
<link rel="canonical" href="https://example.com/brake-pumps/">
Replace the example address with your own complete preferred URL. Put the same declaration on the preferred category page, where it points to itself. Use the final working address, not a broken URL or one that redirects elsewhere.
Check the published output before adding a tag: your CMS or SEO plugin may already create it. Correct the setting that generates the wrong target instead of adding a second, competing declaration. A server can also declare a canonical through a Link HTTP response header. You do not need both methods; if both exist, their targets must agree.
Prefer a canonical in the original HTML. JavaScript can add one if needed, but should not change an existing declaration to a different target. A canonical link is a strong preference signal; sitemap inclusion is weaker. Neither guarantees Google's choice.
When Should You Use Something Else?
Use a canonical hint when equivalent URLs still need to remain available, as with the sorted category. If an old category has permanently moved and visitors should go straight to its replacement, use a permanent redirect, such as HTTP 301 or 308. This changes the browser's destination and signals the move to Google; a canonical tag does not redirect visitors.
Use noindex when you want a page excluded from search, not merely to choose a representative from equivalent pages. The indexing and noindex guide explains that decision. Neither control protects private information; that requires access restrictions.
A robots.txt block is different again: it restricts crawling. If Google cannot fetch a duplicate page, it cannot read the canonical tag on it. Do not block that URL while relying on its tag to communicate your preference.
How Do You Check Google's Choice?
First verify what your site publishes. In Chrome, open the alternate URL, right-click and choose View Page Source, then search for “canonical”. Read the link element in the head, not a code example inside the article body. Repeat for the preferred URL. If no tag appears, the site may still declare a canonical through an HTTP response header or JavaScript.
If JavaScript controls the page, also open Inspect → Elements, focus the HTML tree and search for head link[rel="canonical"] with Ctrl+F or Command+F. Check whether the rendered declaration differs from the source. This is a current browser check, not proof of what Google last indexed.
- Inspect the exact alternate URL. In Search Console, select a property that you can access and that contains the URL. Paste the full address, including its parameter, into URL Inspection.
- Expand Page indexing. In the indexed result, compare User-declared canonical with Google-selected canonical. Inspect the preferred URL as well.
- Check the timing. Compare the reported last crawl with your change date. Test live URL can check current access and output, but cannot predict Google's canonical selection.
- Diagnose the difference. Compare the actual content, canonical declarations, redirects, internal links and sitemap. Correct the conflicting signal or reconsider whether the pages should be grouped.
Here is how to interpret possible findings for the parts-store example:
| Finding | What to do next |
|---|---|
| The sorted page declares the clean category, and Google selects that same category. | The choices agree. Keep the sorting view usable and inspect the selected category's indexing status. |
| The sorted page declares the clean category, but Google selects the sorted URL. Navigation and the sitemap also use the sorted URL. | Align those references with the intended category, check both pages' declarations and content, then allow reprocessing. |
| The vehicle-model page declares the broad category even though it has distinct fitment content. | Correct the template or page setting so the model page points to its own intended URL; check that its content and internal links support the separate purpose. |
If a selected canonical is unavailable in the report, record it as unknown. A valid live test is not a substitute. After fixing a real issue, you can request indexing for an important affected URL; repeated requests do not force Google to accept the preferred version.
Frequently Asked Questions
What Is a Canonical URL Example?
If /brake-pumps/ and /brake-pumps/?sort=price contain essentially the same category, both can declare the clean URL as canonical. The sorted view remains available to shoppers.
What Is the Difference Between a URL and a Canonical URL?
A URL is a page address. A canonical URL is the representative chosen for duplicate or very similar content. A non-canonical address can still open normally; the label does not mean it is broken.
How Can I Check if a URL Is Canonical?
Compare the page's declared preference with Google-selected canonical in Search Console's indexed URL Inspection result. Without access to that report, you can inspect the site's declaration, but cannot confirm Google's choice from the tag alone.

