URL Parser

Decompose a URL into protocol, host, path, query, and hash components

URL

Paste any URL — parsed using the native URL API.

Components

Origin
https://example.com:8080
Protocol
https:
Username
user
Password
pass
Host
example.com:8080
Hostname
example.com
Port
8080
Pathname
/path/to/resource
Search
?foo=bar&baz=qux
Hash
#section

Query Parameters

Edit, add, or remove rows — the rebuilt URL updates below.

No query parameters. Click Add row to add one.

Rebuilt URL

Rebuilt from edits via URLSearchParams.toString().

https://user:pass@example.com:8080/path/to/resource#section