Simple online tools for developers, networking, text and conversions.

Developer Tools

URL Canonicalizer

Normalize a full URL into a cleaner canonical-style form for comparison and cleanup.

Tool

Use this URL Canonicalizer to normalize a full URL into a cleaner and more stable form by trimming spaces, lowercasing the hostname, removing default ports, collapsing duplicate slashes in the path, sorting query parameters, and optionally removing a trailing slash from non-root paths. It is useful for deduplication, URL comparison, cleanup workflows, and debugging links that look different but should resolve to the same structure.

About this tool

Use this URL Canonicalizer to normalize a full URL into a cleaner and more stable form by trimming spaces, lowercasing the hostname, removing default ports, collapsing duplicate slashes in the path, sorting query parameters, and optionally removing a trailing slash from non-root paths. It is useful for deduplication, URL comparison, cleanup workflows, and debugging links that look different but should resolve to the same structure.

Use url canonicalizer when you need a fast browser-based result without extra setup. It works well for quick checks, one-off tasks, and routine formatting or calculation work.

Learn more

Why use this tool

How to use

  1. Paste a full URL into the input box
  2. Click Run Tool to normalize the URL
  3. Review the canonicalized result in the output area
  4. Copy the result for comparison, cleanup, or documentation
  5. Use narrower extractors if you only need one part of the URL

Examples

Example

Input

HTTPS://Example.com:443/path/?b=2&a=1

Output

https://example.com/path?a=1&b=2

Lowercases the hostname, removes the default HTTPS port, trims the path, and sorts query parameters.

Example

Input

https://example.com//docs///install/?z=9&a=1

Output

https://example.com/docs/install?a=1&z=9

Useful for comparing noisy copied URLs.

Common errors

The user expects a search-engine canonical tag checker

Fix: This tool canonicalizes the URL string itself. It does not inspect a page’s rel=canonical markup.

The input is not a complete URL

Fix: Paste a full URL like https://example.com/path?a=1.

The user expects tracking parameters to be removed automatically

Fix: This tool normalizes structure. Use a UTM remover or parameter remover if you also want cleanup by policy.

FAQ

What does URL Canonicalizer do?

It normalizes a full URL into a cleaner canonical-style structure for comparison and cleanup.

Does it check rel=canonical tags on a website?

No. It canonicalizes the URL string itself, not the HTML markup of a page.

Does it sort query parameters?

Yes. Sorting query parameters helps create a more stable normalized output.

Does it remove default ports?

Yes. Default ports like 80 for http and 443 for https can be removed.

What is the difference between URL Canonicalizer and URL Parameter Sorter?

Parameter Sorter only reorders query parameters. URL Canonicalizer also normalizes host, path, default ports, and overall URL structure.

Use cases

Related tools