Skip to main content
Tools Star Hub

URL Parser

Split an absolute URL into protocol, host, port, path, fragment, and query parameters.

What is URL Parser?

A URL parser splits one absolute URL into protocol, hostname, port, path, fragment, and each query parameter. The URL stays in your browser.

Loading tool…

This tool runs in your browser. Inputs, files and generated values stay on this device. Favorites and recently used tools, if you use them, store only tool names in local storage — never passwords, documents or QR contents. See the privacy policy.

URL Parser — Protocol, Host, Path, and Query Parameters — Tools Star Hub

What this tool does

Paste one absolute URL and read its protocol, hostname, port, path, fragment, and query parameters.

How to use

  1. Paste a full URL that starts with http or https.
  2. Press Parse.

Examples

  • A URL with a port and two matching keys

    https://example.com:8080/docs?topic=a&topic= keeps the port 8080 and two topic rows, the second with an empty value.

Main features

  • Each query key as its own row.
  • Empty query values kept.
  • The fragment shown separately from the path.

How it works

The page uses the browser URL parser. Duplicate query keys stay as separate entries. A missing protocol or a relative path is rejected. The hostname is the value the URL parser returns, including an internationalized name in its encoded form.

Tips

  • Include https:// or http://.
  • A hash after the query is the fragment, not another parameter.

Limitations

Only absolute http and https URLs are parsed. The URL is not opened or sent anywhere.

See the disclaimer for what these tools do not cover.

FAQ

How is a URL parsed?
The browser URL parser splits the protocol, hostname, port, path, fragment, and each query parameter.
What happens to duplicate query keys?
Each one is listed. They are not combined into one value.
What about an empty query value?
A key with nothing after the equals sign is kept and shown as empty.
Why is a relative URL rejected?
A relative path has no protocol or host, so it is not an absolute URL.
Is the URL sent to a server?
No. Parsing happens in your browser.