UTILITIES WORKSPACE

Query String ↔ JSON

Convert query parameters to JSON strings and arrays, or build a query string.

Input is processed on this site only when you run the tool. The application does not save inputs or results.

WORKBENCH query-string-json Server

input.txt

Ln 1, Col 1UTF-8 bytes1 line

Result result.json

A little clarity goes here.

Run the tool to see your result.

Awaiting a resultJSON
Ctrl ↵

Ready. Run explicitly; typing and pasting do not send requests.

UTF-8 text, at most 16384 bytes per input. Tab leaves the editor. Plain text disables syntax colors. Browser textareas may normalize line endings to LF.

A QUICK WALKTHROUGH

A familiar workflow,
with room to focus.

When to use Query String ↔ JSON

Move flat request parameters between a query string and readable JSON, including repeated parameter names.

Read the result

Strings remain strings and repeated names become arrays. Grouping discards parameter interleaving and bare-flag spelling; choose form or component encoding deliberately when rebuilding.

SEE IT IN PRACTICE

Worked examples

Sample input. A result you can inspect.

To Json example

Query string

q=hello+world&tag=php&tag=json&empty=
URL mode
Form / query

Expected result

{
  "q": "hello world",
  "tag": ["php","json"],
  "empty": ""
}
To Query example

JSON object

{"q":"hello world","tag":["php","json"],"empty":""}
URL mode
Form / query

Expected result

q=hello+world&tag=php&tag=json&empty=

Formats, limits and common errors

Use a query rather than a full URL. For JSON → Query, quote all values and remove nested objects, empty arrays and duplicate keys.

WHATWG form URL-encoded format ↗ (opens in a new tab)

Find your tool

Use Tab or arrow keys to navigate

JSON Formatter & ValidatorJSONJSON MinifierJSONJSON CompareJSONURL Encoder / DecoderEncodingBase64 Encoder / DecoderEncodingHTML Entity Encoder / DecoderEncodingJWT DecoderSecurityHash GeneratorSecurityPassword GeneratorSecurityToken GeneratorSecurityWord & Character CounterTextUUID GeneratorUtilitiesUnix Timestamp ConverterUtilitiesXML to JSONJSONBcrypt Hash & VerifySecurityRegex TesterTextJSON to CSVJSONCSV to JSONJSONJSON Tree ViewerJSONCode & Text CompareTextURL ParserUtilitiesCron ExplainerUtilitiesColor ConverterUtilitiesJSONL ValidatorAI DevelopmentJSONL FormatterAI DevelopmentPrompt Template BuilderAI DevelopmentToken Count EstimatorAI DevelopmentText ChunkerAI DevelopmentRAG Chunking PreviewAI DevelopmentChat Messages JSON ValidatorAI DevelopmentAI Function / Tool Schema ValidatorAI DevelopmentPrompt Version ComparisonAI DevelopmentAI Request Payload FormatterAI DevelopmentJSON String Escape / UnescapeEncodingHMAC GeneratorSecurityQuery String ↔ JSONUtilitiesCSS Clamp GeneratorUtilities