URL Parser
Break down any URL into its protocol, host, path, query parameters, and hash. Free online URL parser, no signup required.
Preparing private browser tool…
Frequently asked questions
- Does it support all URL schemes?
- Yes. Any URL the browser’s native URL() constructor accepts - http, https, ftp, mailto, data, file, custom schemes, etc. Relative URLs need a base.
- What is the difference between host and hostname?
- Hostname is just the domain (example.com). Host includes the port if present (example.com:8080).
- How are query parameters parsed?
- Using URLSearchParams. Values are automatically URL-decoded. Duplicate keys are kept separately - both ?a=1&a=2 pairs are shown.
- What is the origin field?
- Protocol + host (+ port) combined: https://example.com:8080. It is what the browser uses to enforce the same-origin security policy.
- Which parts of the URL does it break out?
- Protocol, host, hostname, port, pathname, search string, hash, origin, and any username or password in the URL, plus a table of every query parameter and its value.
- Why does my URL fail to parse?
- It uses the browser URL parser, which needs an absolute address. example.com/page is rejected; add https:// in front and it parses.