Skip to content
QuickTool logoQuickTool

Canonical Tag Generator

Generate canonical tags for duplicate content

Start

What is a Canonical Tag?

A canonical tag tells search engines which URL is the preferred version when multiple URLs contain similar or identical content. This helps prevent duplicate content issues and consolidates ranking signals.

When to Use Canonical Tags

  • URLs with tracking parameters (utm_source, etc.)
  • Session ID URLs
  • Print-friendly versions
  • Mobile/AMP versions
  • HTTP vs HTTPS versions
  • www vs non-www versions

HTML Tag

Add this to the <head> section of your page:

<link rel="canonical" href="https://example.com/products/coffee-beans" />

HTTP Header

Use for PDFs, images, or other non-HTML resources:

Link: <https://example.com/products/coffee-beans>; rel="canonical"

Best Practices

  • Use absolute URLs (include https://)
  • Point to the original, not a redirect
  • Use one canonical tag per page
  • Self-reference canonical on the canonical page
  • Make sure the canonical URL is indexable

Description

Generate canonical link tags to specify the preferred version of a web page. Canonical tags help prevent duplicate content issues and consolidate link equity by telling search engines which URL is the authoritative source.

Key features

  • Simple canonical URL input
  • Multiple format outputs (HTML, HTTP header)
  • Copy-ready code snippets
  • Best practices guidance

How to Use

  1. Enter the canonical (preferred) URL for your page.
  2. Copy the generated link tag.
  3. Add it to the head section of duplicate pages.
  4. Or use the HTTP header for non-HTML resources.

Example

Example

Canonical URL:

https://example.com/products/coffee-beans

Generated tag:

<link rel="canonical" href="https://example.com/products/coffee-beans" />

FAQ

When should I use canonical tags?

Use them when you have similar or identical content accessible through multiple URLs, such as with parameters, session IDs, or print versions.

Should canonical URLs be absolute or relative?

Use absolute URLs including the protocol (https://) for best compatibility across all search engines.

Can I have multiple canonical tags?

No, each page should have only one canonical tag pointing to a single URL.