URL PARSER
Break any URL into its protocol, host, port, path, query parameters, and hash, with every parameter laid out in a clean table.
In short
Break any URL down into its protocol, hostname, port, path, query parameters, and hash — and read every query parameter as a clean key/value table. Runs entirely in your browser.
| Protocol | https: |
| Hostname | www.example.com |
| Port | 8443 |
| Origin | https://www.example.com:8443 |
| Path | /blog/post |
| Query string | ?utm_source=newsletter&page=2 |
| Hash | #comments |
| Username | user |
| Password | pass |
| utm_source | newsletter |
| page | 2 |
How to parse a URL
- 1
Paste a full URL, including its scheme (https://).
- 2
The parser splits it into protocol, host, port, path, query string, and hash using the browser's own URL engine.
- 3
Every query parameter is listed separately in a key/value table, so you can read a long tracking URL at a glance.
Questions
- What's the difference between origin, host, and hostname?
- Hostname is just the domain (example.com). Host is the domain plus a non-default port (example.com:8443). Origin is the scheme, host, and port together (https://example.com:8443) — it's the value browsers use to decide whether two pages can talk to each other under the same-origin policy.
- Why does my URL show as invalid?
- The parser requires a complete, absolute URL with a scheme — https://example.com/path works, but example.com/path or //example.com/path (a protocol-relative URL) will be rejected, because the browser's URL constructor can't resolve them without a base URL to resolve against.
- Does this decode percent-encoded characters in the query string?
- Yes — each query parameter's value is decoded automatically, so %20 becomes a space and %3D becomes an equals sign, matching exactly what your browser or server would receive after decoding the request.
- Is the URL I paste sent anywhere?
- No. Parsing happens with the browser's built-in URL class entirely on your device — nothing is sent to a server, which matters if the URL contains a session token, API key, or other sensitive query parameter.
Related tools
- IP Address ValidatorValidate IPv4 and IPv6 addresses, see them expanded/compressed, and find out if they're public, private, or loopback.
- DNS Record LookupCheck A, AAAA, MX, TXT, NS, CNAME, and SOA records for any domain straight from your browser.
- Query String Parser & BuilderParse a URL's query string into key/value rows, or build a query string from scratch.
- Bandwidth CalculatorEstimate download/upload time, the speed you need, or monthly data transfer from file size and connection speed.
- User-Agent ParserDecode a User-Agent string into browser, version, operating system, device type, and rendering engine.
- Curl Command ExplainerPaste a curl command and see every flag explained in plain English, with the derived method, URL, and header count.
- UTM URL BuilderBuild UTM-tagged URLs for campaign tracking in Google Analytics. Add source, medium, campaign, term, and content to any URL.
- IP Subnet / CIDR CalculatorCalculate network address, broadcast address, subnet mask, wildcard mask, and usable host range from CIDR notation or a dotted subnet mask — entirely in your browser.
Updated