Web Toolbox

URL parser

Runs in your browser – nothing is uploaded.

Paste a full URL to see each part separately: protocol, host name, port, path, query string, fragment and origin, plus every query parameter as a key–value list.

Parsing uses the browser’s standard URL API, so the result matches how browsers read the address.

Example

Input

https://example.com:8080/path?foo=bar&baz=1#section

Output

{
  "href": "https://example.com:8080/path?foo=bar&baz=1#section",
  "protocol": "https:",
  "host": "example.com:8080",
  "hostname": "example.com",
  "port": "8080",
  "pathname": "/path",
  "search": "?foo=bar&baz=1",
  "hash": "#section",
  "origin": "https://example.com:8080",
  "username": null,
  "password": null,
  "query": {
    "foo": "bar",
    "baz": "1"
  }
}

Frequently asked questions

Why does my URL fail to parse?

It needs a scheme such as https:// at the start.

What happens to repeated query parameters?

The query list shows the last value for each repeated key.