Development

Query String Converter

Convert URL query parameters to JSON and back while preserving repeated parameter values.

01Input and settings

The calculation runs in your browser. You can use the tool without installing software.

02Result

Waiting for input
Waiting for input

Enter your values or load the example to see the result here.

About this tool: Query String Converter

Convert URL query parameters to JSON and back while preserving repeated parameter values.

Repeated parameters become arrays, so tag=a&tag=b is preserved instead of silently keeping only the last value. Building accepts an object containing scalar values or arrays of scalars. Spaces use the standard form-encoding plus sign; a literal plus is percent-encoded.

How the calculation works

key=value&key=value ↔ JSON

Worked example

Input
q=hello+world&tag=a&tag=b
Mode
Parse
{"q":"hello world","tag":["a","b"]}

Questions and answers

What does this tool do?

Convert URL query parameters to JSON and back while preserving repeated parameter values. Repeated parameters become arrays, so tag=a&tag=b is preserved instead of silently keeping only the last value. Building accepts an object containing scalar values or arrays of scalars. Spaces use the standard form-encoding plus sign; a literal plus is percent-encoded.

What affects precision and input format?

Text operations depend on the selected format. Check the supported characters and syntax in the description and example.

Where are the calculations performed?

The calculation runs in your browser. You can use the tool without installing software.

Comments (0)

Share your thoughts — please be polite and stay on topic.

No comments yet. Leave a comment — share your opinion!

To leave a comment, please log in.

Log in to comment