Guide
Choosing one preferred address and writing the canonical tag
One page can often be reached by several addresses. A product may open with or without www, with a trailing slash or without, with an index.html at the end, or with parameters added by a marketing email. To a person these are the same page. To a search engine they can be separate addresses with identical content, which spreads signals thinly and can make the wrong version the one that is listed. A canonical tag names the version you prefer. This tool cleans an address into that version and writes the tag.
What a canonical tag is
The tag is a line in the head of the page: a link element with rel="canonical" and the preferred address in href. It is a hint, not an order. Search engines weigh it with other signals such as redirects, internal links and the sitemap, and they can choose a different address if your signals disagree. The best use is a single, consistent preferred address for each page that returns a normal page and is listed in your sitemap.
How the address is cleaned
Paste the address as visitors reach it. The tool parses it, which lowercases the host and drops a default port, removes the parameters you list and sorts the rest. The strip box starts with utm_*, sessionid, fbclid and gclid; a star at the end matches every parameter that starts with that text. Toggles then remove the #fragment, a trailing index.html or index.php, the trailing slash and www. The result shows the clean address and how many parameters were removed.
Pagination tags
For a numbered list, enter the current page number and an address pattern with {n} where the number goes. The tool adds rel="prev" and rel="next" links for the neighbouring pages and omits prev on the first page. A warning explains that Google stopped using those tags in 2019, so each page should still carry its own self-referencing canonical. They remain useful for some other crawlers and browsers.
A worked example
The first sample is HTTPS://WWW.Shop.example:443/running-shoes/index.html?utm_source=news&color=red&sessionid=abc#reviews. After cleaning, the canonical address is https://www.shop.example/running-shoes/?color=red: the host is lowercased, the default port and index.html are gone, the utm_source and sessionid parameters are removed, which the result counts as 2, and the fragment is dropped. The second sample starts with https://shop.example/running-shoes?page=3 and page number 3. It keeps the address, adds prev pointing to ?page=2 and next pointing to ?page=4, and shows the 2019 warning.
Limits
The tool cannot see your site. It does not check that the clean address works, redirects properly or serves the same content, and it cannot know which parameters change the page. A parameter such as color may show a different product and deserve its own address, so remove only those that do not change the content. After publishing, open the page source and test the address in a browser.
Keeping signals consistent
A canonical tag works best when everything else agrees with it. Link to the same preferred address from your menus and articles, list it in the sitemap and make the other versions redirect to it. When these signals disagree, search engines may ignore the tag and pick the address they trust most.
Related tools
- Hreflang Tag Generator lists language versions, each of which needs its own canonical address.
- Meta Refresh Generator writes a redirect page that can carry a canonical to its target.
- UTM Link Builder adds the tracking parameters that this tool removes from the preferred address.
- XML Sitemap Generator should list the same canonical addresses.
Checked against the current version of the Canonical & Pagination Tag Generator on .

