?=
QUERY STRING PARSER

Query String Parser

Parse URL query parameters while preserving repeated keys, empty values and order.

Local processing
Workspace
0 characters
Read only
Ready. Enter your content, then choose an action.
◇ Content is processed in this browser onlyInput is not saved automatically
HOW TO USE

How to use

Enter a complete URL, a query beginning with ?, or key=value&key2=value2. Output is an ordered array of name/value pairs. The target URL is never visited.

Example

q=hello+world&tag=js&tag=css gives q the value hello world and retains both tag entries.

GOOD TO KNOW

Keep in mind

Uses form-style query decoding: + becomes a space, while %2B becomes a plus. Repeated keys and empty values are preserved; fragments after # are excluded. Invalid encoding is rejected.

Common questions

Why use an array instead of an object? A parameter can appear more than once, such as tag=js&tag=css. An array keeps both values and their order.