URL parser
Break a URL into protocol, host, port, path, query parameters and hash.
Loading tool…
About the url parser
Breaks an address into protocol, credentials, host, port, path, query and fragment using the browser's own URL parser, so the results match exactly what your code will see. Query parameters are listed separately and decoded.
Frequently asked questions
Why does it reject my URL?
The parser needs an absolute address including the scheme. Add https:// to the front — relative paths have no host or protocol to report on.
Is the fragment sent to the server?
No. Everything after the hash is handled entirely by the browser and never appears in the request, which is why it is unsuitable for anything the backend needs to read.