JSON to Query String — Free Online Tool

Convert a flat JSON object into a URL-encoded query string with repeated keys for arrays. JSON to Query String is a free online tool from the ToolsRift Code Formatters collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.

Loading JSON to Query String

How to use JSON to Query String

  1. Open the JSON to Query String above — it loads instantly, no account needed.
  2. Enter or upload your input. Everything is processed locally on your device.
  3. Get your result immediately and copy or download it with one click.

Frequently asked questions

How are arrays handled?

An array value is expanded into repeated key=value pairs, for example {"t":["a","b"]} becomes t=a&t=b, which most servers parse back into a list.

Is everything URL-encoded?

Yes. Keys and values are passed through encodeURIComponent, so spaces, ampersands and other reserved characters are safely percent-encoded.

What about nested objects?

Nested object values are serialized to JSON and encoded as a single value. For best results provide a flat object of simple key-value pairs.

More Code Formatters

Line Counter
Count lines of code, blank lines, comment lines, and character statistics
Code Diff Viewer
Compare two code snippets and highlight differences with additions and deletions
Indentation Converter
Convert between tabs and spaces with customizable tab size for code formatting
Universal Code Beautifier
Generic code beautifier that works with any programming language syntax
CSV Column Aligner
Align CSV columns into an even monospace table so data is easy to read and scan
Env File Sorter
Sort .env files alphabetically by key, keep comments grouped and drop empty lines

← View all Code Formatters