| Component | Value | |
|---|---|---|
| Protocol | https | |
| Host | www.example.com | |
| Port | 8080 | |
| Pathname | /path/to/page | |
| Hash | #section-2 | |
| Origin | https://www.example.com:8080 |
| Key | Value | |
|---|---|---|
| name | John Doe | |
| age | 30 | |
| lang | en |
A URL (Uniform Resource Locator) specifies the location of a resource on the internet. It consists of a protocol, hostname, port, path, query parameters, and an optional fragment identifier. This parser breaks down any URL into its constituent parts.