>
B's Code

URL Parser

Break a URL down into protocol, host, path, and query params. Runs entirely in your browser.

[ INPUT ]
[ BREAKDOWN ]
// waiting for a URL

About URL Parser

Every URL has a defined structure — scheme, host, path, query, and fragment. This tool uses the browser's native URL parser to split one apart and list its query parameters.

How to use it

  1. Paste a full URL.
  2. Read the parsed protocol, host, path, and other parts.
  3. Scan the query parameters listed as key/value pairs.
  4. Copy any single part you need.

Frequently asked questions

Which parser is used?
The browser's built-in URL and URLSearchParams, the same ones your JavaScript code uses.
Does it decode percent-encoded values?
Query parameter values are shown decoded so they are readable.
What if the URL is relative?
A scheme and host are required for a full parse. Relative URLs will not parse on their own.