Canonical Tag Checker & Validator
Check canonical tags on any webpage, detect missing or incorrect canonical URLs, and prevent duplicate content issues that harm SEO rankings.
Enter your preferred canonical URL to generate the HTML code for implementation.
Try These Examples
Understanding Canonical Tags (Complete Guide)
A canonical tag (rel="canonical") is an HTML element that tells search engines which version of a URL is the master or preferred version when multiple URLs have similar or identical content. It's one of the most important SEO tools for preventing duplicate content penalties.
Without canonical tags, search engines may index multiple versions of the same page (http://example.com, https://example.com, https://www.example.com, https://example.com/index.html), diluting your SEO authority across multiple URLs instead of consolidating it into one.
- ๐ Consolidate Link Equity: All backlinks pointing to duplicate pages pass authority to the canonical URL, boosting rankings for the preferred version.
- ๐ซ Prevent Duplicate Content Penalties: Google penalizes sites with duplicate content. Canonical tags tell Google which version to index.
- โก Crawl Budget Optimization: Search engines waste crawl budget on duplicate pages. Canonical tags focus crawling on important, unique content.
- ๐ Accurate Analytics: All traffic consolidates to canonical URL, providing accurate page view and engagement metrics.
- ๐ URL Parameter Handling: E-commerce sites with sorting/filtering options (?sort=price&page=2) can canonicalize to main product page.
<link rel="canonical" href="https://example.com/preferred-url" />
Place this tag inside the <head> section of all duplicate pages, pointing to the master URL you want search engines to index.
Common Duplicate Content Scenarios Requiring Canonical Tags
https://example.com/page https://www.example.com/page
Choose one version as canonical (usually www or non-www). Redirect the other version or add canonical tag.
http://example.com/page https://example.com/page
Canonical to HTTPS version. Google prefers secure sites. HTTP pages should redirect or canonicalize to HTTPS.
/products?sort=price&page=2 /products?category=shoes
E-commerce filters create infinite URLs. Canonicalize parameter URLs to main product/category page.
/category/ /category
Choose one convention (with or without trailing slash). Canonicalize all variations to preferred version.
/page?print=true /page
Printer-friendly versions duplicate content. Canonicalize to main page.
/page /mobile/page /amp/page
Mobile and AMP versions duplicate desktop content. Canonicalize to desktop version.
Canonical Tag Best Practices (2024)
Always use full absolute URLs in canonical tags, not relative paths. Example: https://example.com/page not /page. Absolute URLs prevent confusion across different domains and protocols.
Every page should have a canonical tag pointing to itself. This prevents other pages from accidentally being treated as canonical and confirms the preferred version.
Only one canonical tag per HTML page. Multiple canonical tags confuse search engines and may be ignored entirely. Search for duplicates in your code.
Never canonicalize to a URL that returns 404 (not found), 403 (forbidden), or is blocked by robots.txt. Search engines will ignore the canonical directive.
Page A โ Page B โ Page C is inefficient. Always canonicalize directly to final master URL: Page A โ Page C, Page B โ Page C.
For permanent consolidations (www to non-www, HTTP to HTTPS), use 301 redirects instead of canonical tags. Redirects are stronger signals than canonical tags.
For multi-page articles (page 1, page 2, page 3), use rel="prev" and rel="next" instead of canonical. Canonical each page to itself unless consolidating.
Always test canonical tags using Google Search Console's URL Inspection tool or our checker above. Verify Google sees and respects your canonical directives.
12 Costly Canonical Tag Mistakes
Pages without canonical tags risk Google choosing the wrong URL as canonical. Every page needs a self-referencing canonical tag to prevent duplicate content issues.
Canonical pointing to a URL that 301 redirects elsewhere. Google may ignore or follow redirect but loses efficiency. Always canonicalize to final destination URL.
Using <link rel="canonical" href="/page" /> instead of full URL. Browsers and crawlers may misinterpret relative paths. Always use absolute URLs.
Pointing canonical to URLs blocked by robots.txt or noindex tags. Google can't crawl canonical target, so directive is ignored. Ensure canonical target is crawlable and indexable.
Having two or more canonical tags on same page. Search engines may ignore all of them. Search your HTML for duplicate canonical declarations.
Cross-domain canonical is allowed but risky. Google may ignore unless it trusts the relationship. Use only when you own both domains and have clear reason.
Using canonical on page 2 to point to page 1 removes page 2 from index. Use rel="prev" and rel="next" for multi-page content, not canonical.
Canonical URLs are case-sensitive. /Page and /page are different URLs. Ensure exact case match with actual page URL to avoid confusion.
HTTP page canonicalizing to HTTPS (good) but HTTPS page canonicalizing to HTTP (bad). Always canonicalize to HTTPS version for security and SEO.
Pointing canonical to 404 page. Google wastes crawl budget trying to access missing page. Always verify canonical target returns 200 OK.
Canonical doesn't remove pages from index; it consolidates. For pages that shouldn't be indexed at all (admin, thank you pages), use noindex tag, not canonical.
Adding canonical tags without verification. Always use Google Search Console's URL Inspection tool or our canonical checker above to confirm Google sees and respects your directives.
Canonical Tag vs 301 Redirect: When to Use Which
- โ Moving content permanently to new URL
- โ Consolidating www to non-www (or vice versa)
- โ Migrating HTTP to HTTPS
- โ Deleting old pages permanently
- โ You own both URLs and want one removed from index
- โ Parameter URLs (sort, filter, search) need consolidation
- โ Printer-friendly versions of pages
- โ Both versions should remain accessible to users
- โ Cross-domain content syndication
- โ You can't implement server-level redirects
301 redirects send users AND search engines to new URL. Canonical tags keep users on current page but tell search engines which version to index. Choose 301 for permanent moves, canonical for pages that must remain accessible but shouldn't be indexed as primary.
How Google Processes Canonical Tags
Google treats canonical tags as strong hints, not strict directives. Here's what you need to know:
- Canonical is a suggestion: Google may choose different canonical if your implementation conflicts with other signals (internal links, sitemaps, redirects).
- Consolidation takes time: Google doesn't reprocess canonical tags instantly. Allow 2-4 weeks for Google to consolidate duplicate URLs after implementation.
- Cross-domain canonical: Google supports canonical across domains but may ignore if domains aren't trusted or content is significantly different.
- Canonical vs hreflang: For international sites, use canonical + hreflang together. Canonical specifies master version; hreflang specifies language/region alternatives.
- Indexing priority: Google prioritizes canonical URL for indexing and ranking. Non-canonical versions may still be crawled but not indexed.
Use GSC's URL Inspection tool to see which canonical Google has selected for any URL. The "Google-selected canonical" field shows Google's final decision, which may differ from your specified canonical if Google detects issues.
You Might Also Like These SEO Tools
Frequently Asked Questions About Canonical Tags
<link rel="canonical" href="https://example.com/preferred-url" /> inside the <head> section. For WordPress, use Yoast SEO or Rank Math plugins. For Shopify, canonical tags are auto-generated. For custom sites, add via PHP or your CMS template files.Check Your Canonical Tags Now
Free canonical tag checker for SEO professionals and webmasters. Detect duplicate content issues and optimize your site structure.