Skip to content
SmaftyTools

URL Parser / Query String Splitter

Break a URL into its protocol, host, path, hash and individual query parameters. Free online URL parser, runs entirely client-side.

About URL Parser / Query String Splitter

The URL Parser / Query String Splitter breaks a URL into its individual parts — protocol, host, port, path, hash and every query parameter listed separately — instead of leaving you to eyeball a long string for the piece you need. Paste a URL and get a clean, labeled breakdown instantly.

It's useful for debugging a redirect that's landing on the wrong page by inspecting its exact path and query string, checking what tracking parameters (UTM tags, referral codes) are actually attached to a link before sharing it, decoding a complex URL with many query parameters to find one specific value quickly, and understanding a URL a bug report or support ticket pasted in without manually counting ampersands and question marks.

Parsing uses the browser's native URL API — the same URL-parsing logic every browser uses internally to load a page — so the breakdown here matches exactly what parsing that URL in JavaScript (or any modern browser) would produce. Query parameters are extracted individually with their decoded values (percent-encoded characters like %20 or %3D are automatically decoded), so a param like `?q=hello%20world` shows up as `q = hello world`, not the raw encoded string.

URLs without a scheme (like `example.com/path` instead of `https://example.com/path`) are rejected with a clear message rather than silently guessed at, since the URL API itself requires an explicit scheme to parse correctly — add `https://` (or the correct scheme) to the front and it'll parse normally. Credentials embedded in a URL (`https://user:pass@host`) are broken out into their own fields too, which is useful for spotting a leaked token or password sitting in a URL before it's shared somewhere it shouldn't be. Parsing happens entirely in your browser; the URL you're inspecting is never sent anywhere, which matters when the URL itself contains a session token, API key or other sensitive query parameter.

How to Use the URL Parser / Query String Splitter

  1. Paste a full URL, including its scheme (https://).
  2. The parsed breakdown appears instantly: protocol, host, path, hash and every query parameter.
  3. Copy the breakdown or download it as a text file.

Features

  • Full breakdown: protocol, host, port, pathname, hash, credentials
  • Every query parameter listed individually with decoded values
  • Uses the browser's native, spec-compliant URL parser
  • Clear error message for URLs missing a scheme

Examples

Parsing a full URL with credentials, port, query and hash

Input

https://user:[email protected]:8080/products/shoes?color=red&size=9#reviews

Output

Protocol: https: · Host: example.com:8080 · Path: /products/shoes · Hash: #reviews
Query parameters: color = red, size = 9

Rejecting a URL with no scheme

Input

example.com/path

Output

Error — make sure the URL includes a scheme, e.g. https://

Frequently Asked Questions

Why do I need to include https:// in the URL?

The parser uses the standard URL API, which requires an explicit scheme to know how to interpret the rest of the string. Without one, 'example.com/path' is ambiguous — add https:// (or the correct scheme) to the front.

Are query parameter values automatically decoded?

Yes — percent-encoded characters like %20 (space) or %3D (equals sign) are decoded in the query parameter list, so you see the actual intended value rather than the raw encoded string.

Can it parse a URL with a username and password?

Yes — URLs in the form https://user:pass@host are supported, and the username and password are broken out into their own labeled fields separate from the host.

Is the URL parser free?

Yes, the URL parser is completely free with no usage limits. No signup, no account and no installation required.

Is my data safe?

Yes. All processing happens locally in your browser using JavaScript — nothing you type is uploaded or stored on our servers.