Parse URL Query Parameters

Split a URL into protocol, host, path and a table of query parameters. Decode each value automatically.

Part of the free URL Decoder. Runs in your browser — nothing is uploaded.

Parse URL Query Parameters

When a callback URL is long, reading it as one line is painful. The decoder breaks out every query key so you can see tokens, return URLs and flags without guessing where one value ends.

Worked example: A callback-style URL

URL

https://app.example.com/cb?code=abc%20123&state=ok

Parts

protocol: https:
host: app.example.com
path: /cb
code: abc 123
state: ok

Practical tip

Copy only the query string into the decoder if the full URL is not needed. Start at the first character after ?.

How to use this URL Decoder

  1. 1Use the live tool above — it runs entirely in your browser and never uploads your data.
  2. 2Paste the sample from the worked example, or use your own input.
  3. 3Copy the result, then adapt the same steps in your editor, script, or pipeline.

Parse URL Query Parameters FAQs

How are duplicate keys handled?

The breakdown lists every pair. Duplicate keys appear more than once, which matches how URLSearchParams works.

Does the fragment appear?

Yes, the part after # is shown separately and is not sent to the server.