URL Parser
Free online URL parser tool, breakdown URL components
About URL Parser
This tool decomposes a URL using the browser's native `URL` constructor and lists each component separately. It splits out protocol, hostname, host, origin, port (or `(default)` when none), pathname, search (or `(none)`), and hash (or `(none)`), then enumerates every query parameter as a key/value table. The input is pre-filled with the current page URL and parsed live as you type.
How to Use
1. Paste or edit the URL in the input field (defaults to the current page URL). 2. Invalid URLs show a red border and an error message; valid URLs render the components immediately. 3. Each component row has a Copy button to copy that value. 4. Query parameters appear in a table when present, each with a Copy button that copies `key=value`.
Component Reference
Hostname is the domain without port; Host includes the port if specified. Origin combines scheme + host + port. Port shows `(default)` when the URL uses the scheme's default port. Search shows the raw query string or `(none)`; Hash shows the fragment or `(none)`. Query parameters preserve order and repeated keys appear as separate rows; only `key=value` (without the leading `?`) is copied from a row.
▶Why does my URL show an error?
▶What is copied when I click Copy on a query parameter row?
▶How are repeated query parameters handled?
▶Does it decode percent-encoded values?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee