Define the preferred address
Choose a consistent public scheme, hostname and path convention for each page. A canonical tag expresses the preferred representative of duplicate or substantially similar content; it is not a shortcut for removing unrelated pages. Document the URL policy so navigation, metadata and sitemaps use the same address rather than relying on individual authors to guess.
Watch inherited layout metadata
A shared root canonical is convenient until every child page accidentally points to the homepage. The pages still render and their links still work, which makes the problem easy to miss in visual reviews. Generate or override the canonical at the page level, especially when one route template renders many different tools or articles.
Follow an example through the site
Suppose the intended address is https://example.com/tools/json-formatter/. Its breadcrumb, sitemap and internal cards should use that path. A canonical pointing to https://www.example.com/tools/ creates a different instruction. Compare the final response after redirects, not the URL pasted into a browser before the hosting platform normalizes it.
Separate duplicates from distinct pages
A filtered view that changes only ordering may represent a duplicate, while the second page of an article archive contains different entries. Do not canonicalize every archive page to the first simply because the layout is shared. Examine the main content and purpose of the URL before applying a blanket rule to the route family.
Do not use canonical as access control
Canonicalization does not make confidential data private and is not a guaranteed removal mechanism. Protect private resources with appropriate authentication. For public pages that should not be indexed, investigate the appropriate indexing directive instead. Mixing unrelated concerns into one canonical policy produces a site that is harder to reason about and debug.
Verify signals after deployment
Extract canonical URLs from the exported HTML and compare them with the sitemap. Test their status, hostname and trailing slash behavior on the actual host. Search Console can show the canonical Google selected, which may differ from the declared preference. When a mismatch appears, investigate duplicated content and competing signals rather than repeatedly changing the tag without evidence.
Further reading
Put the idea to work.
Explore free browser tools for images, text and developer workflows.