Tested tool guide
Tested browser tools
Checked August 16, 2026
What URL Parser / Decomposer does, with a checked example
Paste a URL and get every piece labeled: protocol, username and password if present, host, port, path, query string, and hash. The parser applies the WHATWG URL rules that browsers use, so this is not a naive string split: hosts are lowercased, default ports disappear, and disallowed characters such as spaces come back percent-encoded (%20). The usual surprise is that the result can differ from what you pasted, and that query values are reported raw - a + stays a + and %20 stays %20 unless you decode them yourself. The whole parse runs in your browser, so the URL never leaves your machine.
Worked example
A concrete input and expected output from the current implementation.
Input
https://user:pass@example.com:8080/path/to/page?q=hello+world&lang=en#section-2
->
Expected output
Protocol: https
Username: user
Password: pass
Host: example.com
Port: 8080
Path: /path/to/page
Query: q=hello+world&lang=en
q = hello+world
lang = en
Hash: section-2
The structural markers are read left to right: userinfo closes at @, the port stays 8080 because it differs from https's default (443), the path begins at the first / after the host, ? opens the query, # opens the fragment, and the query splits into two key=value pairs. Plus signs are left alone because only form encoding turns + into a space.