My Tools Garage

URL Parser

Break a URL into its parts and query params.

in-browser

How to use

  1. 1 Paste a full URL into the input box.
  2. 2 Read the protocol, host, port, path, query and hash.
  3. 3 Scan the query parameters listed as key/value pairs.
  4. 4 Copy any individual value you need.

About URL Parser

The URL Parser splits any URL into its component parts: protocol, host, hostname, port, path, query string and fragment.

It also expands the query into an ordered list of key/value pairs, so you can read exactly what is being passed without squinting at a long string of ampersands and percent-encoded characters.

It is built on the browser’s native URL API, the same engine your code uses at runtime, so the results match what the platform actually does — including how it handles default ports, repeated parameters and internationalised hostnames.

If you paste something that is not a valid absolute URL, you get a clear error instead of a silent wrong answer, which makes this a quick way to validate a URL as well as inspect one.

This is the tool to reach for when you are debugging a redirect, checking that a tracking link carries the parameters you expect, or just trying to understand a URL someone pasted into a ticket.

Repeated query keys are preserved in order rather than collapsed, and each value has a copy button.

Everything runs locally in your browser, so even private or signed URLs stay on your machine.

FAQ

What counts as a valid URL?

Any absolute URL the browser’s URL API accepts, such as https://example.com/path?a=1. Relative paths on their own are rejected with an error.

Are duplicate query keys preserved?

Yes. Repeated parameters like ?x=1&x=2 are listed separately and in order rather than merged.