?=

Query String to JSON

Convert a query string to JSON and a JSON object to a query string. Two-way, in the browser.

Live·100% in your browser — no upload

  

What is Query String to JSON

Query String to JSON converts a query string (e.g. lang=en&id=42) into a readable JSON object, and also does the reverse, turning a JSON object into a query string. Useful for building or reading URL parameters.

The conversion happens in the browser with the native URLSearchParams and JSON APIs.

How it works

  1. Paste the query string or the JSON.
  2. Press Query → JSON or JSON → Query.
  3. Copy the result.
  4. Values are encoded/decoded correctly for use in URLs.

Frequently Asked Questions

Does it handle values with special characters?
Yes. Percent-encoding and decoding of values is handled automatically by the browser's native APIs.
What happens with repeated keys?
In Query → JSON the last occurrence of a key wins, consistent with standard behavior. Arrays require specific conventions.
Is the data sent online?
No. Everything happens in the browser.

Related tools