JSON to Query String Converter

Paste a JSON object and convert it into a clean URL query string with configurable encoding and array handling.

JSON input

Paste a JSON object. Root arrays and primitives are reported instead of guessed.

Processed locally in your browser Limit JSON text. Your input is processed in your browser and is not uploaded or sent to a server. Avoid pasting production secrets, access tokens, private keys, passwords, or sensitive customer data unless you understand the risk.
0 input characters0 query pairs0 warnings

Query string output

Copy a URL-ready query string without opening generated URLs or sending data anywhere.

Waiting for input0 output characters
Query string output appears here.

Paste a JSON object or load a sample to produce URL parameters locally in your browser.

JSON to query string guide

Turn plain JSON objects into URL parameters for API requests, search filters, redirect URLs, and debugging tools while keeping conversion local.

Object keys become parameters

Each top-level JSON key becomes a query parameter. Strings, numbers, booleans, and null values are converted predictably so the output can be copied into a URL or request client.

Array formats

Choose repeated keys, bracket keys, indexed keys, or comma-separated values depending on the API you are calling. Repeated keys are common for filters and multi-select inputs.

Nested objects

Nested object keys can be flattened with dot notation such as user.name or bracket notation such as user[name]. Match the format your backend parser expects.

Percent encoding

Percent encoding uses encodeURIComponent for keys and values so spaces, ampersands, brackets, and punctuation do not break the query string.

URL length limits

Long query strings can fail in browsers, proxies, servers, logs, and analytics systems. The converter warns when output length moves into risky URL territory.

Reverse conversion

Use JSON to Query String when you already have an object. Use Query Params to JSON when you need to inspect an existing URL or query string as structured JSON.

FAQ

Does this tool open generated URLs?

No. It treats JSON as data, creates text output, and never opens, fetches, or validates generated URLs.

Why does the input need a JSON object?

Query strings need named keys. Root arrays and primitive values do not provide stable parameter names, so the converter reports them instead of guessing.

Which array format should I choose?

Use repeated keys for many APIs, bracket keys for PHP-style parsers, indexed keys when position matters, and comma-separated values only when the receiving API expects a single delimited value.

Should I percent-encode the output?

Usually yes. Encoding keeps spaces, ampersands, equals signs, brackets, and other reserved characters from being interpreted as URL syntax.

Is it safe to put tokens in query strings?

Avoid it when possible. Query strings can appear in browser history, server logs, proxy logs, screenshots, and referrer headers, so this tool warns about secret-like keys and values.