URL Parser: Split a URL into Host, Path and Query Parameters

  • Free
  • No sign-up
  • Runs in your browser
  • Last updated 2026-10-07
Report a problem

Paste a web address to see each of its parts and every query parameter, decoded and listed.

Everything you enter is processed in your browser and is never sent to a server.

How to use

  1. Paste or type a URL. A web address without https:// is read as https. Use Load example to try one with many parts.
  2. Read the parts: protocol, host, port, path, query string and fragment, each with a Copy button.
  3. Check the list of path segments and the table of query parameters, which are shown decoded.

Examples

https://user@example.com:8080/docs/getting%20started?lang=ko&q=%ED%95%9C%EA%B8%80&debug&lang=en#install
→ host example.com:8080, path /docs/getting%20started, fragment #install
The path segments are docs and getting started. The parameters are lang=ko, q=한글, debug (empty) and lang=en.
example.com/path?q=1
→ https://example.com/path?q=1
No scheme was given, so https:// was added.
https://example.com:443/
→ port (none)
The default port of a scheme is left out of the result.

How it works

The address is read by the browser’s own URL class, which follows the URL Standard, so the result matches what a browser would do with the same address. Query parameters are read with URLSearchParams, which decodes percent sequences and plus signs.

If the text has no scheme, it is read as https only when it looks like a host name with a dot, for example example.com/path. Anything else is reported as not a valid URL, instead of being guessed.

The path segments are split at slashes and decoded for display. A bad percent sequence in a segment is left as it is rather than causing an error.

Sources

Frequently asked questions

What are the parts of a URL?
From left to right: the scheme (https:), optional credentials (user:password@), the host (example.com), an optional port (:8080), the path (/a/b), the query string (?x=1&y=2) and the fragment (#section). The origin is the scheme, host and port together.
How are parameters with the same name handled?
Each one is listed, in order. A URL can contain x=1&x=3, and the tool shows both values. Your own code should decide whether to take the first, the last or all of them.
How are spaces and + signs decoded?
In a query string, both %20 and + are read as a space. In the path, only %20 is a space and + stays a plus sign.
Why is the port empty?
When the port is the default for the scheme (443 for https, 80 for http), it is not part of the parsed URL. Only a port that differs from the default is shown.
Is it safe to put a password in a URL?
No. Anyone who sees the address, in a log, a history list or a shared link, sees the password. The tool warns you when it finds one.
Is my URL uploaded?
No. The URL is parsed in your browser and is not sent anywhere.

Last updated: