SEO & GEO
What is a canonical tag? An explanation of the canonical URL
Copy for AI
A canonical tag tells search engines which version of a page is the main one.
You need it when the same, or nearly the same, content exists on several URLs.
The URL you point to is the canonical URL: the preferred version Google should show in the results.
The verdict: a canonical is a hint, not a command. It bundles real duplicates well, but it won’t hide pages you don’t want indexed.
What is a canonical tag exactly?
It’s one line of HTML in the <head> of a page.
It looks like this:
<link rel="canonical" href="https://yoursite.be/preferred-page/">
It tells search engines: this content may live at several addresses, but treat this URL as the original.
Canonicalization in one sentence
Canonicalization is how Google picks the most representative page from a set of similar ones.
Google explains it in its documentation on canonicalization, where it calls your preference “a hint, not a rule”.
That chosen page is the canonical URL.
Tag vs URL
The canonical tag and the canonical URL aren’t two separate things:
- The tag: the means you use to state your preference
- The URL: the result, the version you point to
A short definition is also in our wiki item on the canonical tag.
Google’s guide on consolidating duplicate URLs recommends full https:// paths over relative ones.
Tip: always use an absolute URL in the tag.
How do you add a canonical link tag?
Put a <link rel="canonical"> element in the <head> of the duplicate page, pointing to the preferred URL.
That’s the standard route for HTML pages. But it isn’t the only one.
Is a canonical a meta tag?
No. It’s a link element, even though many people search for it as a “meta tag canonical”.
It lives in the <head> next to your meta tags, which explains the mix-up. Google’s guide on consolidating duplicate URLs says the element is only accepted in the <head>.
Place it in the body and Google ignores it.
Which method fits which situation?
Google lists four ways to state your preferred URL. Pick by file type and by whether the duplicate should stay reachable:
| Method | Where it goes | Use it for | Strength (per Google) |
|---|---|---|---|
rel="canonical" link element | The <head> of the HTML page | Duplicates that must stay reachable, such as UTM or filter URLs | Strong signal |
rel="canonical" HTTP header | The server response | Non-HTML files such as PDFs | Strong signal |
| 301 redirect | Server or CMS redirect rules | A duplicate you’re retiring for good | Strong signal |
| Listing in the sitemap | Your XML sitemap | Backing up the other methods | Weak signal |
The HTTP header looks like this for a PDF:
Link: <https://yoursite.be/downloads/price-list.pdf>; rel="canonical"
Rule of thumb: use the link element for pages, the header for files, and a redirect only when the old URL should disappear.
What you shouldn’t use
Two tools look tempting but don’t canonicalize:
- robots.txt: Google says not to use it for canonicalization, and a blocked URL can still get indexed
- The URL removal tool: it hides every version of a URL, the preferred one too
Why do you need a canonical?
Because the same content ends up on several URLs more easily than you’d think.
Four classic cases
These four create most duplicates:
- Tracking parameters:
page/andpage/?utm_source=newslettershow the same content - Multiple paths: one page reachable through different categories or menus
- Protocol and host: www and non-www, http and https, with or without a trailing slash
- Print or language variants: versions that largely overlap
Our explainer on duplicate content covers each cause in more depth.
What happens without one
Google then sees those variants as separate pages competing with each other.
Your link value fragments, and it’s unclear which version should rank.
The canonical tag fixes that. It bundles the signals, such as incoming links, on the preferred version, and that version appears in the results.
That’s a basic part of healthy on-page SEO.
Is a canonical a hint or a command?
A hint. This is the nuance many people miss.
A canonical is a strong recommendation, not a binding command. Google may ignore it if other signals say something different.
How strong each signal is
Google ranks the ways to state a preferred URL by strength:
So line them up. When your canonical, internal links and sitemap all point to one URL, Google rarely overrules you.
How does Google choose the canonical URL?
Google picks the page it considers the most complete and useful for searchers, and weighs your signals along the way.
Its canonicalization documentation names these inputs:
- Protocol: HTTPS over HTTP
- Redirects: where the duplicate sends visitors
- Sitemap: whether the URL is listed
- Annotations: your
rel="canonical"link
So a canonical tag in Google works best when the other inputs agree with it.
When Google ignores your canonical
2 situations trigger it most:
- the two pages differ too much in content
- your internal links and sitemap point to another version
You can check which URL Google picked in Search Console’s URL Inspection:
If the two lines differ, a signal is contradicting you.
Robots.txt, noindex and canonical look alike, but each solves a different problem. All three shape how Google indexes your website.
Which canonical mistakes are most common?
3 of them, and each can throw good pages out of the index.
1. A self-canonical set wrong
A self-referencing canonical, where every page points to itself, is the safe default.
But in practice it often goes wrong. For example:
- a CMS or theme canonicalizes every page to the homepage
- the canonical still points to your staging or old domain
- an absolute URL uses the wrong www or https variant
Google then drops good pages, because you pointed them elsewhere.
Here’s what a correct self-canonical looks like in a page’s source:
Check: the self-canonical must match the live URL of the page exactly.
2. Paginated pages canonicalized to page 1
Pointing page 2, 3 and onwards to page 1 hides your deeper content from the index.
Usually it’s better to let each page be itself. Consolidate only real parameter duplicates.
3. A conflict you don’t spot
Sometimes Google picks a different canonical than you did. Then you go looking for the conflicting signal.
What does this mean for B2B?
The same principle as for webshops, on a smaller scale.
Duplicates are usually linked to large webshops, with endless filters and variants. A B2B site has fewer pages, but each one counts.
Where B2B signals fragment
3 typical sources:
- tracking parameters from your campaigns
- several paths to the same service page
- an old and a new version of one article
Don’t overdo it
For most B2B sites, a self-referencing canonical plus a few targeted fixes on parameter URLs is enough.
You don’t need a complicated canonical scheme for a handful of pages.
What matters is that your authority stays on the pages that deliver leads.
We make that trade-off in a considered SEO approach. Rule of thumb: apply the default, then spot the exception.
Frequently asked questions
Only want the core in one paragraph? See our concise answer on what a canonical tag is.
What is the difference between a canonical tag and a canonical URL?
The tag is the HTML instruction (rel="canonical") that states your preference. The canonical URL is the page you point to. Means vs result.
Is the canonical tag a meta tag?
No. It’s a <link rel="canonical"> element in the <head>, not a <meta> tag. For PDFs and other files you send it as an HTTP header instead.
Should every page have a canonical tag?
A self-referencing canonical is a safe default. It removes doubt about the preferred URL, even with tracking parameters.
Can Google ignore my canonical?
Yes. It’s a hint, not a command. If internal links or the sitemap contradict it, Google may pick another URL.
Can I keep a page out of Google with a canonical?
No. A canonical consolidates variants; it removes nothing. To take a page out of the results, use a noindex or a 301 redirect.
In doubt about duplicates on your site?
Check URL Inspection first: it shows whether Google agrees with you.
Does Google pick a different page than you intend? Tell us your situation, and we’ll show you where your strongest opportunities lie, in Google and in AI answers. Contact us.
Free website scan
Enter your website and get an automatic scan within minutes, with concrete technical and SEO improvements. No sales pitch.
We only use your details for your scan. No spam, unsubscribe anytime.