Canonical Tag Generator
Generate the correct HTML canonical tag to prevent duplicate content issues. Works for standard pages, paginated pages, and AMP pages.
Options
Paste multiple URLs (one per line) to generate canonical tags for all of them at once (self-referencing).
Frequently Asked Questions
<link rel="canonical" href="...">) tells search engines which URL is the authoritative/preferred version of a page when multiple URLs serve similar or identical content. It was introduced by Google, Bing, and Yahoo in 2009 and is the standard solution for managing duplicate content without redirects.rel=prev/next pagination signals were officially dropped by Google in 2019. If individual paginated pages have low standalone value, consider using noindex on pages beyond the first, but only if users don't need to land on those pages directly from search. For large e-commerce category pages, having each paginated page indexed is often valuable.<link rel="canonical" href="https://yoursite.com/original-article">. Google then consolidates ranking signals to your domain rather than the republishing site. This is widely used in news syndication (e.g., AP articles republished by newspapers) and content partnerships. The third-party site must agree to implement the canonical tag — you cannot set it on someone else's pages.<meta name="robots" content="noindex">) tells Google "do not include this page in the index at all." Use canonical when you want the preferred version indexed and ranking signals consolidated. Use noindex when the page should not appear in search at all (thin content, internal search results, staging pages). Do not combine canonical + noindex on the same page — these are contradictory signals that confuse crawlers.About This Canonical Tag Generator
This free canonical tag generator creates the <link rel="canonical"> HTML tag for any URL. Paste the canonical URL, click Generate, and copy the ready-to-paste tag into your page's <head>.
A canonical tag tells search engines which version of a URL is the authoritative one, preventing duplicate-content issues caused by URL parameters, trailing slashes, HTTP vs HTTPS, or paginated content.
When to use this tool
- Preventing duplicate content issues from URL parameters or session IDs
- Consolidating link equity from near-duplicate pages
- Setting the canonical for paginated or filtered catalogue pages
- Fixing HTTP/HTTPS or www/non-www canonicalization issues
Standards & References
How It Works
Enter the Preferred URL
Enter the canonical URL — the exact version of the page you want indexed, including protocol, www/non-www, and trailing slash preference.
Configure Options
Enable AMP canonical or paginated page options for special cases. The output updates to include all necessary link tags automatically.
Add to <head>
Copy the tag and place it inside the <head> of each page. For bulk generation, paste multiple URLs and copy all tags at once.
Common Use Cases
UTM Parameter URLs
Pages accessed via UTM tracking URLs (e.g., ?utm_source=email) should have canonical tags pointing to the clean URL to avoid duplicate content issues.
Filtered & Sorted Pages
E-commerce category pages with sort/filter parameters (?color=red, ?sort=price) should canonicalize to the base category URL.
Print-Friendly Pages
Print versions of pages (e.g., /page?print=1) should canonicalize back to the standard page URL to consolidate ranking signals.
AMP Pages
AMP versions of articles must include a canonical tag pointing to the canonical (non-AMP) URL, while the canonical page should link to the AMP page with <link rel="amphtml">.
Paginated Content
For paginated series (page-1, page-2, page-3…), consider having page 2+ canonicalize to page 1 or use self-referencing canonicals per Google's current guidance.
HTTP to HTTPS Migration
During migration, use canonical tags on HTTP pages pointing to HTTPS equivalents as an additional signal alongside 301 redirects.
Related SEO Tools
Related Articles
View all articles
Pagination, Canonical Tags, and rel=prev/next: What Changed and What Still Matters
Google stopped using rel=prev/next for pagination in 2019 — but the canonicalization question for paginated content didn't disappear. Here's why self-referencing canonicals are generally correct for paginated listings with unique items per page, when "view all" pages should be the canonical target instead, and how infinite scroll fits into this.
Cross-Domain Canonical Tags: Telling Search Engines "The Real Version Is on a Different Domain"
A canonical tag's target doesn't have to be on the same domain — cross-domain canonicals are the standard mechanism for content syndication, telling search engines "this content also exists at [original publisher's URL], and that's the version to treat as canonical." Here's how this works for syndication and multi-domain organizations, the historical AMP precedent, and why the canonical target must actually exist and contain matching content for the signal to be honored.
Canonical Tags in JavaScript Frameworks: SPAs, Next.js, and E-Commerce Faceted Navigation
React and Vue SPAs often inject canonical tags via JavaScript — which Googlebot sees only after rendering, with a processing delay. Here's how Next.js SSR handles canonicals correctly, how to manage e-commerce faceted navigation, and how to verify what Google actually sees.
Canonical Tags vs. 301 Redirects: A Decision Framework for Duplicate Content
Canonical tags and 301 redirects both solve duplicate content problems — but through different mechanisms with different trade-offs. Here's the decision framework for when to use each, common canonical mistakes, and the belt-and-braces approach for domain canonicalisation.
Canonical Tag Generator — Fix Duplicate Content & Consolidate SEO Signals
Learn what canonical tags are, why duplicate content hurts SEO, how to use canonicals vs. 301 redirects, and how to generate the correct canonical tag for any URL with a free tool.