Canonical Tag Generator

Generate the correct HTML canonical tag to prevent duplicate content issues. Works for standard pages, paginated pages, and AMP pages.

Canonical URL
The preferred, canonical version of this page's URL
Options
Generated Tags

    
Bulk Canonical Generator

Paste multiple URLs (one per line) to generate canonical tags for all of them at once (self-referencing).

0 URLs

    

Frequently Asked Questions

A canonical tag (<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.
Use a 301 redirect when the old URL should no longer be accessible at all — it sends users and bots directly to the new URL. Use a canonical tag when both URLs should remain accessible (e.g., URL with tracking parameters) but you want to tell search engines which one is the "real" version for indexing purposes.
Yes. Adding a self-referencing canonical to every page is a best practice. It explicitly signals the preferred URL (including http vs https, www vs non-www, trailing slash or not) and prevents problems if scrapers republish your content — Google can still identify your URL as the original.
Google treats canonical tags as hints, not directives. If the specified canonical URL has significantly different content, is not crawlable, or is part of an inconsistent signal cluster, Google may override it and choose a different canonical. Consistent canonical signals (canonical tag + sitemap inclusion + internal linking + 301s) ensure Google respects your preferred URL.
Yes — adding a self-referencing canonical tag to every page is a best practice, even when there is no duplicate content risk. It prevents ambiguity about your preferred URL when scrapers republish your content, explicitly signals http vs https preference, www vs non-www, and trailing slash conventions. Google recommends self-referencing canonicals and many technical SEO audits flag pages that are missing them. The implementation cost is minimal and the benefit — a clear, unambiguous signal to Google — is worth it on every page.
Google may override your canonical tag when: the specified canonical URL is not crawlable (blocked by robots.txt or returning an error); the content differs significantly between the two pages; there are conflicting signals — e.g., your canonical points to URL A but your sitemap only includes URL B, or internal links predominantly link to URL B; the page has hreflang annotations that conflict with the canonical; or the canonical URL itself redirects to somewhere else. The more consistent your signals (canonical + sitemap + internal linking + 301 redirects), the more reliably Google respects your choice.
For paginated series (/page/2, /page/3…), Google's current recommendation is to use self-referencing canonicals on each paginated page — don't canonical all pages to page 1, as that may cause Google to exclude page 2+ from indexing. The deprecated 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.
No — Google does not penalize duplicate content in the sense of a manual or algorithmic penalty. Instead, Google automatically filters duplicates: it selects one version to index as canonical and suppresses the others from search results. The SEO impact is that your ranking signals (backlinks, PageRank) become diluted across duplicate URLs rather than consolidated on one. The goal of canonical tags is to tell Google which version to consolidate signals onto, not to avoid a penalty.
Cross-domain canonicals allow content syndicated on a third-party site to point back to the original publisher as the canonical source. For example, if your article is republished on a partner site, the partner's version can include <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 and content partnerships.
A canonical tag tells Google "this page exists but prefer this other URL — consolidate signals there." The page itself may still be crawled and even indexed as a non-canonical. A noindex tag (<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. 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

Related Articles

In-depth guides and technical articles.

View all →
Canonical Tags at Architectural Scale — Faceted Navigation, hreflang Conflicts, and When Cross-Domain Canonicals Fail
Google treats canonical tags as hints it can override — and architectural scenarios (faceted navigation, multilingual hreflang, syndicated content) require system-level canonical strategy rather than page-by-page decisions. Here's the parameter classification framework for e-commerce facets, why hreflang URLs must always point to canonical versions, when cross-domain canonicals fail against higher-authority syndicators, and why soft 404s break canonical consolidation.
Google Ignores Your Canonical Tag More Often Than You Think — Here's Why and How to Detect It
Canonical tags are hints, not commands — Google will override your specified canonical if the destination has significantly different content, returns errors, conflicts with hreflang annotations, or contradicts overwhelming external link signals. Here's the four main override reasons, how to detect a canonical override in Google Search Console ("Google-selected canonical" vs "user-declared canonical"), and when a 301 redirect is a more reliable tool than a canonical tag.
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.