Query String Parser

Query String Parser lets you decode URL query pairs into arrays so repeated parameter names are retained. Enter your own values or load the worked example.

Method and calculation

Decode URL query pairs into arrays so repeated parameter names are retained.

Inputs and settings

Query String Parser accepts Query string.

Worked example

Query String Parser example — Query string: "tag=photo&tag=audio&page=2". Computed output: { "tag": [ "photo", "audio" ], "page": [ "2" ] }

Output and limitations

Query String Parser: Input is treated as plain text; it is never executed.

Technical references: JavaScript Unicode normalization

Query String Parser FAQs

Query String Parser applies the following rule to your input: Decode URL query pairs into arrays so repeated parameter names are retained. The worked example on this page uses the same processor as the result button.
Query String Parser has these boundaries: Input is treated as plain text; it is never executed. Start by checking the query string field against the units or format shown.
Query String Parser provides this sample: { "tag": [ "photo", "audio" ], "page": [ "2" ] }. Use the sample button to reproduce it, then replace the inputs with your own values.