Normalize hostname, default port, and parameter order
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.
Developer Tools
Review practical URL Canonicalizer examples so you can understand expected input, output, and common patterns faster.
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.
Example pages are especially useful for developer tools because they show what good input looks like, what kind of output to expect, and how the tool behaves in common scenarios.
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.
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.
Fix: This tool canonicalizes the URL string itself. It does not inspect a page’s rel=canonical markup.
Fix: Paste a full URL like https://example.com/path?a=1.
Fix: This tool normalizes structure. Use a UTM remover or parameter remover if you also want cleanup by policy.
After reviewing these examples, run the live tool with your own input. If your task involves a follow-up step, the related page can help you move to the next tool in the workflow.
Open the main URL Canonicalizer page and test your own real input.