Canonical Tag Generator
Enter a URL and instantly get the correct HTML canonical link tag to prevent duplicate content penalties.
Canonical URL
Enter the preferred (canonical) version of the URL.
Options
Generated Tag
Your canonical tag will appear here...
Where to place it
Paste the tag inside the <head> section of every duplicate or alternate page:
<head>
<meta charset="UTF-8">
<title>Page Title</title>
<link rel="canonical" href="https://example.com/page/">
</head>
Canonical tag checklist
- Use the full absolute URL including protocol (https://)
- Add self-referencing canonical tags on all pages, including the canonical itself
- Keep only ONE canonical tag per page — multiple tags are ignored
- The canonical URL must return a 200 status, not a redirect or 404
- Place the tag in <head>, not in <body>
Summary
Enter a URL and instantly get the correct HTML canonical link tag to prevent duplicate content penalties.
How it works
- Enter the canonical URL — the preferred version of the page.
- The tool validates the URL format and normalizes it.
- Your canonical link tag is generated instantly below.
- Click "Copy Tag" to copy the HTML snippet to your clipboard.
- Paste the tag inside the <head> section of the duplicate or alternate page.
Use cases
- Prevent duplicate content penalties when the same page is accessible via multiple URLs.
- Consolidate link equity from HTTP and HTTPS versions of the same page.
- Specify the preferred URL when pagination, tracking parameters, or session IDs create URL variants.
- Signal the correct URL to search engines when syndicated content appears on multiple domains.
- Fix canonical tags for print-friendly or AMP versions of pages.
- Consolidate www and non-www variants of a domain.
- Declare the canonical for product pages accessible via multiple category paths.
- Handle trailing-slash URL variants cleanly.
Frequently Asked Questions
Related tools
Last updated: 2026-05-29 ·
Reviewed by Nham Vu