URL Parser
URL Parser breaks a URL down into its protocol, hostname, port, path, query parameters and hash (anchor) components, listing each query parameter individually.
Protocolhttps:
Hostnameexample.com
Port8080
Hash#section
Path + Query/path?a=1&b=2
Query parameters
a=1
b=2
How it works
- 1Paste the full URL you want to parse.
- 2All components (protocol, host, port, path, hash) are shown instantly in separate boxes.
- 3Query parameters (?key=value&...) are listed individually as key-value pairs.
- 4If you enter an invalid URL, the tool flags it.
Frequently asked questions
What's shown when no port is specified?−+
'-' is shown; the browser's `URL` API only returns the port if it's explicitly present in the URL, it doesn't auto-fill the protocol's default port (80 for HTTP, 443 for HTTPS).
What happens with duplicate query parameter names?−+
Each is listed as a separate row (e.g. ?tag=a&tag=b shows two separate 'tag' rows), that's valid usage in URLs.
Does a relative URL work?−+
No, this tool only parses full (absolute) URLs, a path without a protocol and host (e.g. /path?a=1) is considered invalid.
What browser API does this use?−+
The native `URL` and `URLSearchParams` APIs, no third-party parsing library is needed.
Embed on your site
Size
480 × 360px<iframe src="https://toolsqube.com/en/network/url-parser/embed" width="480" height="360" style="border:0;border-radius:14px" title="URL Parser · ToolsQube" loading="lazy"> </iframe>
Want to go deeper on this topic: Network and Systems Guide →