toolqik

67 · API & Webhooks

Query String Parser

Decode URL query parameters into a table and JSON, including arrays and nesting.

Runs in your browser
JSON style
Decoding

JSON

  

About this tool

Long URLs from analytics links, search pages and API calls hide their parameters behind percent-encoding: q=running%20shoes&filter%5Bcolor%5D%5B%5D=red. Paste a URL or query string to see every parameter decoded in a table, with repeated keys flagged, and as JSON in the shape your framework will see.

JSON styles

  • Flat: one value per key; the last occurrence wins, as many frameworks do by default.
  • Repeated → arrays: size=9&size=10 becomes "size": ["9", "10"].
  • Nested brackets: PHP, Rails and Node’s qs style, so filter[color][]=red becomes {"filter": {"color": ["red"]}}.

Encoding details

In HTML form encoding, + means a space, which is how URLSearchParams and most servers read query strings. In other URL parts, + is a literal plus, so the option lets you choose. Malformed sequences such as a lone % are shown as typed instead of failing. Build a query string the other way with the Query String Builder.

FAQ

How do I parse a query string?

Paste the full URL or just the part after ? above. Each parameter is decoded into a table and JSON.

How are repeated parameters handled?

They’re flagged in the table, and become arrays in the “Repeated → arrays” and nested JSON styles.

Does + mean a space in URLs?

In query strings using form encoding (the usual case), yes. Elsewhere in a URL, + is a literal plus. Toggle “+ means space” to match your server.

esc
↑↓ navigate↵ open