AIWalay Tools

URL Parser

Break any URL into protocol, host, port, path, query and fragment. Lists decoded query parameters and outputs JSON. Forgiving of missing scheme. Free.

About the URL Parser

This URL parser splits any URL into its component parts — protocol, host, hostname, port, path, query string, fragment and origin — so you can see exactly how it's structured. Paste a long, parameter-heavy URL and get a clean breakdown, plus a decoded table of every query parameter and an equivalent JSON object.

It uses the browser's native URL API for accurate, standards-compliant parsing, and is forgiving about input: if you leave off the scheme, it assumes https:// so you can paste a bare domain. Credentials embedded in the URL (user:pass@) are surfaced, with the password masked, and query parameters are percent-decoded and grouped so repeated keys become arrays.

The JSON output captures the whole structure, ready to use in code or tests, and you can copy it in one click. Everything runs locally in your browser, so URLs containing tokens, session IDs or internal hostnames never leave your device.

How to Use the URL Parser

  1. 1Paste a URL into the input box (the scheme is optional).
  2. 2Click Parse URL.
  3. 3Review the component breakdown and the decoded query parameters.
  4. 4Copy the JSON representation for your code.

Frequently Asked Questions

What's the difference between host and hostname?

Hostname is just the domain (shop.example.com), while host includes the port if one is present (shop.example.com:8443). Origin combines the protocol, hostname and port (https://shop.example.com:8443) and is what browsers use for same-origin security checks.

Do I have to include https:// in the URL?

No. If you paste a URL without a scheme, the parser assumes https:// so a bare domain like example.com/path?x=1 still parses correctly. If you need a different scheme, include it explicitly.

How are query parameters shown?

Each parameter is listed in a table with its percent-decoded value, and the JSON output includes a query object. Repeated keys are grouped into arrays there, matching how most servers interpret multi-value parameters.

Is it safe to paste URLs with tokens or passwords?

Yes. Parsing happens entirely in your browser using the native URL API, so nothing is transmitted. Any password embedded in the URL is masked in the display for shoulder-surfing safety.

Related Tools