URL Parser

Break any URL into protocol, host, port, path, query parameters and fragment — and rebuild it.

100% FreeNo sign-upPrivate — runs in your browser
Protocol
—
Host
—
Hostname
—
Port
—
Path
—
Query string
—
Fragment
—
Secure (HTTPS)
—
Copied to clipboard

How to use this tool

1
Paste a full URL

Include the scheme, e.g. https://example.com/path?x=1#section.

2
Read the components

Protocol, host, port, path, query string and fragment are shown separately.

3
Inspect query parameters

Every parameter is listed in a table, in order, including duplicates.

4
Copy the rebuilt URL

The parsed parts are reassembled into a normalised URL.

Formula & worked example

A URL is scheme://[user[:password]@]host[:port]path[?query][#fragment]. The query is split on & and each pair on the first =, with percent-decoding applied to keys and values.

https://user:[email protected]:8080/p?q=1&q=2#frag parses to protocol https:, host example.com:8080, port 8080, path /p, two q parameters (1 and 2), and fragment #frag.

Limitations — read this before you rely on it

Only absolute URLs with a scheme are parsed — relative URLs like /path/page need a base to resolve against. Default ports (443 for HTTPS, 80 for HTTP) are shown as (default) when omitted.

Frequently asked questions

Hostname is just the domain (example.com). Host is hostname plus port when one is present (example.com:8080).

The part after #. It is handled by the browser (usually scrolling to an anchor) and is never sent to the server.

Yes — e.g. ?tag=a&tag=b. This parser lists both, in order, instead of silently dropping one.

user:password before the @. It is rare today and browsers warn about it, because it is often abused in phishing URLs.

No. Parsing is purely textual; nothing is requested over the network.