Back to Arsenal

Canonical Tag Generator

SEO

Generate clean rel=canonical tags for preferred URLs and duplicate-page control.

ttb run canonical-tag-generator
Enter the preferred URL for this page and copy the canonical tag.

Canonical URL

Point duplicate or near-duplicate pages to the preferred version.

Generated tag

https://www.example.com/best-pdf-editor

<link rel="canonical" href="https://www.example.com/best-pdf-editor" />
Use absolute URLs, not relative paths, for the cleanest canonical implementation.
Share this tool:

How to Use Canonical Tag Generator

Enter the canonical URL — the preferred version of your page — and click Generate. The tool outputs a ready-to-paste <link rel="canonical"> HTML tag for your <head>. Use this whenever you have duplicate or near-duplicate content across multiple URLs (www vs non-www, HTTP vs HTTPS, paginated pages, UTM-tagged URLs) to tell search engines which version to index and credit with authority.

1

Enter your canonical URL

Paste the full preferred URL including the protocol (https://). This is the version you want Google to index.

2

Generate the tag

Click Generate to produce the <link rel="canonical" href="..."> HTML tag.

3

Copy and paste into your <head>

Add the tag to the <head> section of every duplicate or variant page pointing to this canonical.

Frequently Asked Questions

What is a canonical tag?+
A canonical tag (<link rel="canonical">) tells search engines which URL is the "master" version of a page. It prevents duplicate content issues from splitting your SEO authority across multiple URLs.
Should I add a canonical tag to every page?+
Yes — even pages without duplicates benefit from a self-referencing canonical. It signals intentionality to search engines and prevents unexpected duplication from tracking parameters.
Does canonical guarantee the correct URL gets indexed?+
It is a strong hint, not a directive. Google respects canonical tags the vast majority of the time, but can override them if it detects a canonical that contradicts its crawl data.

Free tools, weekly.

Get lightweight updates when new tools land.