Skip to main content
Calctrove Calctrove

Query String Builder

Query String Builder

Build URL query strings from JSON objects and arrays.

InputsManual input79 charsAuto run

File input

Choose a file

Click, drop, or paste from clipboard.

Options

0

No options.

More actions
Manual

Query string output

0

No output yet.

Live

Manual

Ready

79

Input

0

Output

0

ms

Flow
  • Parse input as a JSON object.
  • Flatten nested objects into dot-path key names.
  • Append each encoded key value pair into URLSearchParams output.
Example

Worked example: object to query string

  1. 1 Input includes {"name":"Ada","tags":["json","tools"]}.
  2. 2 Arrays become repeated keys in URLSearchParams.
  3. 3 Output string is encoded and ready for URL append.

You get a valid query string that can be pasted directly after ? in a URL.

How
  1. Paste a JSON object in the input panel.
  2. Run builder to generate encoded query text.
  3. Copy output and append it to your base URL.
Cases
  • Create query text from filter settings in admin tools.
  • Build deterministic links for QA test scenarios.
  • Convert frontend state objects into URL parameters.
Avoid
  • Supplying a JSON array root instead of an object root.
  • Expecting nested objects to remain nested without key flattening.
  • Forgetting that empty keys are dropped from output.
FAQ
Can I use nested JSON objects?

Yes, nested keys are flattened with dot notation in the generated query string.

How are arrays encoded?

Arrays are emitted as repeated key entries in URLSearchParams format.

Does this tool validate JSON first?

Yes, invalid JSON input is rejected and shown in the error panel.

Switch
Switch12