What is a canonical tag?
A canonical tag — <link rel="canonical" href="..." /> in the page's <head> — tells search engines which URL is the authoritative version when the same or near-identical content is reachable at more than one address. Google consolidates ranking signals (links, relevance) onto the canonical URL and generally excludes the duplicates from the index, instead of splitting authority across several weaker pages that compete with each other.
Duplication happens more often than people expect: a URL with and without a trailing slash, tracking parameters like ?utm_source=..., HTTP vs HTTPS, www vs non-www, printer-friendly versions, and paginated or filtered product listings all commonly serve the same content at different URLs.
When to use it
Add a canonical tag to every indexable page, even ones you don't think have duplicates — it's cheap insurance, and self-referencing canonicals (a page pointing to itself) are standard practice. It becomes essential on e-commerce sites where the same product is reachable through multiple category paths or with sort/filter query strings, on syndicated content where the same article runs on multiple domains, and on any page with paginated or parameterized variants.
Example
Say your product page is reachable at both https://northstar-goods.com/shop/jacket and https://northstar-goods.com/shop/jacket?color=navy&ref=email. On the parameterized version, set the Canonical URL field to https://northstar-goods.com/shop/jacket and paste the generated tag into that page's <head> — this tells Google to index and rank the clean URL while still crawling the parameterized one.
How to use the Canonical Tag Generator tool
- 1
Identify the preferred URL
Pick the single version you want indexed — usually the clean URL without tracking parameters.
- 2
Enter the full absolute URL
Include the protocol (https://) and full path; relative URLs are not valid canonical targets.
- 3
Paste into <head>
Add the generated tag to every duplicate/variant page, pointing them all at the same canonical URL.
- 4
Share or verify
Use "Copy link to this result" to hand the exact URL to a teammate, or check it in your page source after deploying.
Frequently asked questions
Can a page have more than one canonical tag?
No — if a page has multiple conflicting rel=canonical tags, search engines will typically ignore all of them and choose their own canonical, which defeats the purpose. Keep exactly one per page.
Should the canonical URL include query parameters?
Only if the parameters actually change the content in a way that should be indexed separately. For tracking, sorting or session parameters, canonicalize to the clean URL without them.
Does a canonical tag redirect users?
No. It's a hint to crawlers only — users still land on whatever URL they requested. If you want to force users to the preferred URL, use an actual 301 redirect in addition to (or instead of) the canonical tag.
Is this tool sending my URLs anywhere?
No. The tag is generated entirely in your browser from the URL you type; nothing is uploaded or logged.
Related on TechLogHub
Related SEO Tools
Meta Tag Generator
Generate HTML meta tags for SEO
OpenGraph Tag Generator
Generate OpenGraph meta tags for social sharing
robots.txt Generator
Generate robots.txt files for search engine crawlers
sitemap.xml Generator
Generate XML sitemaps for search engines
FAQ Schema Generator
Generate FAQPage structured data (JSON-LD) — no longer a Google rich result
HowTo Schema Generator
Generate HowTo structured data (JSON-LD) — Google retired the rich result in 2023
Get the next tool before you need it
One email a week: new and trending developer tools, fresh comparisons, and what shipped. Unsubscribe in one click.

