URL Parser

Break a URL into its components or assemble a URL from parts.

Mode
URL to Parse

About URL Parser

A URL (Uniform Resource Locator) is composed of several parts: the protocol (scheme), host, optional port, path, query string, and fragment. This tool uses the browser's built-in URL API to parse URLs accurately, then decodes each query parameter individually.

URL components explained

Protocol — The scheme: https, http, ftp, mailto, etc.

Host — The domain name or IP address. Does not include the port.

Port — The TCP port number. Empty when using the default for the protocol (80 for HTTP, 443 for HTTPS).

Pathname — The path component starting with /.

Query string — Everything after ?, split into key-value pairs. Values are URL-decoded.

Hash / Fragment — Everything after #. Not sent to the server; used by the browser for in-page navigation.

Frequently asked questions

Are relative URLs supported?
No. The parser requires an absolute URL with a protocol (e.g. https://). Relative URLs like /path?q=1 cannot be parsed without a known base URL.
Are duplicate query parameter keys supported?
Yes. When the same key appears multiple times (e.g. ?tag=a&tag=b), each occurrence is shown as a separate row in the parameters table.
Does Build mode URL-encode the parameters?
Yes. Parameter names and values are passed through encodeURIComponent before being appended to the URL, so special characters are properly escaped.

Related tools