A canonical tag is an HTML link element placed in the <head> section of a web page that specifies the preferred URL for a piece of content. When multiple URLs display the same or very similar content, the canonical tag tells search engines which version is the authoritative "original" to index and assign ranking signals to. It is one of the primary tools for managing duplicate content issues.
Why Duplicate Content Happens
Duplicate content is more common than most website owners realize. It arises naturally from features like URL parameters (for filtering, sorting, or tracking), HTTP vs. HTTPS versions, www vs. non-www URLs, trailing slashes, session IDs, and printer-friendly page versions. E-commerce sites are especially prone to this issue, with products appearing under multiple category paths or with different parameter combinations. Without canonical tags, search engines must guess which version to index — and they may guess wrong, diluting ranking signals across duplicate pages.
How to Implement Canonical Tags
Canonical tags are placed in the HTML head of a page:
- The tag format is:
<link rel="canonical" href="https://example.com/preferred-url/" /> - Always use absolute URLs (including the full domain) in the canonical href
- Ensure the canonical URL is accessible, crawlable, and returns a 200 status code
- Do not canonicalize a page to a URL that itself has a different canonical tag (canonical chains)
- Canonical tags can also be implemented via HTTP headers for non-HTML files like PDFs
Canonical Tags vs. 301 Redirects
Both canonical tags and 301 redirects address duplicate content, but they work differently. A 301 redirect sends users and bots from one URL to another — the original URL effectively no longer exists. A canonical tag keeps both URLs accessible while telling search engines which one to index. Canonical tags are preferable when you need multiple URLs to remain accessible for legitimate reasons, such as supporting URL parameters for functionality.
Why It Matters for SEO
Without proper canonicalization, link equity can be fragmented across duplicate URLs, weakening overall rankings. Search engines may index the wrong version of a page, wasting crawl budget on duplicate content, and diluting the authority of the preferred page. Correct canonical tag implementation consolidates ranking signals, protects crawl budget, and ensures the right page ranks for target queries.