Back to SEO Glossary

What is a Canonical URL?

A canonical URL is the address a search engine selects as the representative version of a page when the same or similar content is available at multiple URLs. You can signal your preference with redirects, a rel=”canonical” annotation, and sitemap inclusion, but search engines may choose another URL before consolidating duplicate-page signals.

More About Canonical URLs

It’s normal to have pages that you can reach at more than one URL. Common causes include:

  • http:// vs. https:// versions of the same address
  • “www.yourdomain.com” vs. “yourdomain.com”
  • URL parameters, like a category page’s sorting and filtering options
  • Separate mobile and desktop versions of a page
  • Region variants, like US and UK pages with the same content in the same language

Designating a canonical URL tells search engines which of those addresses you want treated as the primary version, so they don’t index the same page several times and treat the copies as duplicate content. It’s a strong hint, not a command: Google weighs your canonical as one signal among several and can choose a different URL if other signals point elsewhere.

If you don’t designate one, Google picks for you: it groups the duplicates it finds and selects the URL it considers most representative of the set. Its documentation says your site will likely do just fine without specifying a preference. When you care which version searchers see, though, tell Google directly.

How to set a canonical URL

Google documents 3 ways to declare a canonical, ranked by how strongly they can influence its choice:

  • A redirect (strongest). A 301 redirect is a strong signal that the redirect’s target should become the canonical.
  • A rel="canonical" tag (strong). Add a link tag to the duplicate page’s head section: <link rel="canonical" href="https://www.example.com/blog/post/">
  • Sitemap inclusion (weak). Listing only your preferred URLs in your XML sitemap is a weak signal that helps them become canonical.

These methods can stack, becoming more effective when combined: using 2 or more increases the chance that your preferred URL is the one that appears in search results. None of them are required. Google canonicalizes with or without your input.

Canonical URL vs. 301 redirect

The choice comes down to whether the duplicate address should keep working:

  • Use a 301 redirect when the duplicate URL should stop being reachable, such as after a permanent move. It sends both visitors and search engines to the target and passes ranking signals along with them.
  • Use a canonical tag when both URLs need to stay accessible, such as tracking links, print views, or near-duplicate product pages. It guides search engines only; visitors can still load either address.

Why a canonical URL matters for SEO

Google clusters duplicate URLs and selects a canonical whether you declare one or not, then consolidates the group’s signals, such as links pointing at the different variants, onto the URL it selected. That Google-selected canonical is the version searchers see in results, and it isn’t always the one you asked for.

Three duplicate URL variants — an http version, a www version, and a parameter version — converge with arrows into a single canonical URL, whose consolidated ranking signals then flow onward to search results. It shows that search engines merge duplicates into one representative address rather than ranking each copy separately.

Unmanaged duplicates carry 3 costs: Google may surface a variant you didn’t intend, crawlers spend time re-fetching copies of the same content, and your traffic reports fragment across the variants. Consistent canonical signals steer all 3 toward one URL; they influence Google’s selection without guaranteeing it.

Canonicalization doesn’t stop the duplicates from being crawled, though. Google’s documentation notes the canonical page is crawled most regularly and duplicates less often, to reduce crawling load on your site. Set your canonicals deliberately, then check Search Console to see which URL Google actually chose.

Frequently Asked Questions

Inspect the page with the URL Inspection tool in Google Search Console: it shows the Google-selected canonical next to the one you declared. The Page indexing report flags mismatches as “Duplicate, Google chose different canonical than user.”
Yes, rel="canonical" annotations work across domains, and Google once recommended them for syndicated articles. It reversed that guidance in May 2023: republished copies often differ too much from the original, so Google now advises syndication partners to block their copies with noindex instead.
Yes. WordPress core has output a self-referencing canonical tag on single posts and pages since version 2.9, and Yoast SEO adds canonicals across your site. To override one manually, use the Canonical URL field under Advanced in the Yoast SEO sidebar.
Special Offer

Professional SEO Services

Our Pro Services team will help you rank higher and get found online. Let us take the guesswork out of growing your website traffic with SEO.

SEO Services