Break a URL into its parts and query parameters
| Key | Value |
|---|---|
| id | 123 |
| name | test |
The URL parser takes a web address apart and lists its protocol, hostname, port, pathname, search string, hash and origin, then turns the query string into a Key / Value table. It relies on the browser's built-in standard URL parser, so what you see matches what new URL() returns in a web script. It only analyses the text you type: it never visits the address, and it cannot tell you whether the page exists or is safe. It is handy for untangling links with long parameter lists, checking redirect targets and debugging API requests.
The default example https://example.com:8080/path/page?id=123&name=test#section1 gives: protocol https:, hostname example.com, port 8080, pathname /path/page, search ?id=123&name=test, hash #section1, origin https://example.com:8080, and a parameter table with two rows, id = 123 and name = test. A second example with encoding: https://example.com/search?q=hello%20world&tag=a&tag=b shows the port as '(default)', decodes q to 'hello world', and lists tag twice in the table, once as a and once as b. These results come from running the same standard parser the tool uses.
Most often the scheme is missing, for example when you paste www.example.com/page. Put https:// in front and it will parse. Spaces in the address, a malformed scheme such as 'htp://', or an invalid port number can also make it fail.
The Value column is decoded, so %20 appears as a space and UTF-8 percent-encoded Chinese appears as characters. The 'Search' row, however, shows the raw encoded text so you can compare it with the original link.
The hash is used by the browser locally and normally isn't sent to the server with the request, and it isn't part of the query string. Some single-page apps keep their route there; you can read it in the Hash row, but it isn't split into a parameter table.
No. It only splits text, so it can't recognise a phishing link. It does help you see the real hostname, though. In https://example.com@evil.test/ the actual host is evil.test, not the example.com that comes first, and the breakdown makes that obvious.
Parsing happens in your browser and the tool makes no network requests. The address you type is not uploaded, stored or visited. Reloading the page restores the example URL. Links that contain login tokens or secret keys in their parameters should still not be pasted into places you don't trust or shared casually.