Free Canonical Tag Generator
Generate a copy-ready rel="canonical" tag from any URL — with optional normalization for HTTPS, fragments, tracking parameters, www, and trailing slashes.
href="https://example.com/article" />
Canonical Tag Generator
Browser-only · No data is uploaded
- ✓ Removed URL fragment
Paste inside the <head> section of your HTML document.
Set this as an HTTP response header instead of the HTML tag. Either method works — you do not need both.
How to Use the Canonical Tag Generator
Follow these steps to generate a canonical link tag for your page:
Step 1 — Enter your URL
Paste the absolute URL of the page you want to set as the canonical (preferred) version. The URL must begin with http:// or https://.
Step 2 — Choose normalization options
Select which transformations to apply: force HTTPS, remove the URL fragment, remove tracking parameters, remove all query parameters, set a WWW preference, or control the trailing slash.
Step 3 — Review the change summary
The tool shows you exactly which transformations were applied, so there are no surprises in the output.
Step 4 — Copy the HTML tag
Click COPY TAG to copy the <link rel="canonical" href="..." /> element to your clipboard.
Step 5 — Place the tag in your <head>
Paste the copied tag inside the <head> section of your HTML page. For server-side implementations, use the HTTP Link header output instead.
What Is a Canonical Tag?
<link rel="canonical" href="https://example.com/preferred-page" /><head> section of your HTML document, and the href attribute should always contain an absolute URL — including protocol, domain, and path.What Does rel="canonical" Do?
Where to Put a Canonical Tag
<head> section of your HTML document — before the closing </head> tag.<body> are invalid and will be ignored. If you are using a CMS like WordPress, most SEO plugins (such as Yoast SEO or Rank Math) inject the canonical tag automatically.Link: <https://example.com/page>; rel="canonical"What Makes a Good Canonical URL?
/blog/article, do not mix in /blog/article/ across different canonical tags.Absolute vs Relative Canonical URLs
https://example.com/blog/article./blog/article.Query Parameters and Canonical URLs
HTTPS, WWW, and Trailing Slashes
Common Canonical Tag Mistakes
What This Generator Can and Cannot Check
Frequently Asked Questions
Common questions about canonical tags and how to use this generator.
Was this tool useful?
Your feedback helps us improve VClick Tools.