What is a canonical tag?
A canonical tag (also known as rel="canonical") is an HTML element that tells search engines which version of a URL is the "master" copy of a page. It is placed in the <head> section of your HTML document.
Duplicate content is one of the most common SEO problems. The same page can often be accessed through multiple URLs — with or without www, with trailing slashes, with query parameters, or across HTTP and HTTPS. When search engines find the same content at different URLs, they have to guess which version to index and rank, which can dilute your page authority.
By adding a canonical tag, you explicitly tell Google and other search engines: "This is the preferred URL for this content. Please consolidate all ranking signals here." This prevents your pages from competing against themselves in search results and ensures that link equity flows to the correct URL.
Best practice is to include a self-referencing canonical tag on every page of your site, even when there are no duplicate versions. This acts as a safeguard against future duplication issues and gives search engines a clear, consistent signal about your preferred URLs.
How to use the Canonical Tag Generator
The rel=canonical tag tells Google which URL is the "master" version when the same content lives at multiple URLs. Used correctly, it consolidates ranking signals; used incorrectly, it can deindex the wrong page.
Enter the canonical URL
This is the version of the page you want Google to index. Use the full https URL, including trailing slash, query strings (only if they're meaningful), and proper case.
Pick self-referencing or cross-domain
Self-referencing canonicals point to the same page they're on — best practice for almost all pages. Cross-domain canonicals point to a different domain, used for syndicated content.
Copy the link tag
The output is a single <link rel="canonical" href="..." /> tag. Place it in the page's <head>.
Verify with the Canonical Checker
After deploying, fetch the URL and confirm the canonical resolves to the right target with no redirect chain.
Why canonical tags matter for SEO
Most websites accidentally publish the same content at multiple URLs — http vs https, www vs non-www, trailing slash vs no slash, query parameters, session IDs, faceted navigation. Without a canonical, Google has to guess which version is the "real" one, and it often guesses wrong.
What canonicals consolidate
- Backlinks — links to /page?utm_source=email and /page get merged.
- Engagement signals — clicks, dwell time, and bounce rate roll up to the canonical.
- Crawl budget — Google stops re-crawling duplicate variants once the canonical is clear.
- Indexing decisions — only the canonical version appears in search results.
When self-referencing canonicals matter
Even pages that aren't duplicated benefit from a self-referencing canonical. It defends the page against accidental duplication caused by tracking parameters, scrapers, or third-party syndication. Best practice: every indexable page on your site has a canonical pointing to itself.
Three failure modes
- Canonical points to a 404 or 301-redirect chain — Google may ignore the tag entirely.
- All pages canonical to the homepage — entire site gets deindexed except the homepage.
- Canonical conflicts with hreflang or pagination — Google ignores the canonical and picks its own.
Frequently asked questions
What is a canonical tag?
A canonical tag (<link rel="canonical" href="..." />) tells search engines which URL is the master version of a page when the same or similar content exists at multiple URLs. It consolidates ranking signals to the canonical version and prevents duplicate-content issues.
Should every page have a canonical tag?
Yes — best practice is a self-referencing canonical on every indexable page. Even if the page isn't duplicated, a self-canonical defends against accidental duplication from URL parameters (UTM, session IDs) or scrapers.
What's the difference between canonical and 301 redirect?
A 301 redirect physically routes users and crawlers from URL A to URL B — only B is reachable. A canonical keeps A reachable but tells Google to index B instead. Use 301 when A should never be visited; use canonical when both URLs are valid (e.g., www and non-www, or product pages reachable via multiple categories).
Can I canonical to a different domain?
Yes — cross-domain canonicals are valid and commonly used for syndicated content. If you republish an article on another site, the syndicating site can canonical back to your original to consolidate ranking signals. Both domains must be HTTPS.
What happens if my canonical is wrong?
If the canonical points to a 404 or a redirect, Google may ignore the tag and pick a canonical itself. If the canonical points to an unrelated page, Google may consolidate signals incorrectly, deindexing pages that should rank. If all pages canonical to the homepage by mistake, the entire site can deindex.