Canonical Tag Generator
Also known as: Canonical Generator
Generate a canonical link tag to avoid duplicate-content issues.
<link rel="canonical" href="https://example.com/page"> Files never leave your device - the markup is generated entirely in your browser.
Use the generated canonical tag
One tag for the URL you supply
The generator trims surrounding whitespace and escapes HTML attribute characters. It produces a link tag; it does not choose the preferred URL for you.
Review the destination before publishing
The tool does not fetch the URL, check its HTTP status, remove tracking parameters or validate that it is an absolute address. Use a complete URL and check the destination yourself. The generated tag does not create a redirect.
Generation makes no request to the destination
The URL is formatted locally. Copy the result into your page’s head or the equivalent canonical setting in your CMS; the tool does not edit the site.
A canonical URL with parameters
https://example.com/article?edition=2&lang=en Output: <link rel="canonical" href="https://example.com/article?edition=2&lang=en">. The parameters remain; the ampersand is escaped for HTML.
Related tools
How it works
- 1
Enter the page URL
The version you want search engines to index.
- 2
Copy the tag
One <link rel="canonical"> tag.
- 3
Paste it into <head>
On every duplicate/near-duplicate page.
FAQ
- When do I need a canonical tag?
- When the same or very similar content is reachable at more than one URL (e.g. with and without a trailing slash, or a tracking parameter) - it tells search engines which URL is the one to index.
- Does a canonical tag redirect visitors?
- No - it is only a hint to search engines about indexing. Visitors still see whichever URL they requested; use a real redirect if you want visitors moved too.
- Does this tool send my URL anywhere?
- No - the tag is generated entirely in your browser.
