URL Parser
Break a URL into protocol, host, path and query params.
URL parts
Protocol https Username user Password โขโขโขโขโขโข Host sub.example.com:8080 Hostname sub.example.com Port 8080 Path /path/to/page Query string ?q=coffee&type=latte Hash / fragment #section-2 Origin https://sub.example.com:8080
Query parameters
| Key | Value |
|---|---|
| q | coffee |
| type | latte |
About the URL Parser
Break any URL into protocol, credentials, host, port, path, query string and fragment, then list every query parameter as a key-value table. Malformed input is reported clearly, and URLs typed without a scheme get https:// prepended automatically so a bare domain still parses.
How to use the URL Parser
- Paste a URL into the input field.
- Read the URL parts box for protocol, host, port, path, query string, hash and origin.
- Check the Query parameters table for each decoded key and value.
- Edit the URL to compare how different query strings parse.
URL Parser FAQ
Does it handle credentials in the URL?
Yes. Username is shown as entered, while the password is masked with dots rather than displayed in plain text.
What if I type example.com without https?
The parser prepends https:// automatically, so scheme-less domains still split into host, path and parameters instead of erroring.
Are duplicate query parameters preserved?
Yes. Every key-value pair appears in the table in order, including repeated keys, which URLSearchParams exposes exactly as sent.