JSON ↔ GET Parameters
Free online JSON to URL params converter, no installation required. Bidirectional conversion between JSON and query string
About JSON GET Params
Converts between a JSON object and a URL query string in either direction. The Encode mode flattens nested objects using dot notation (e.g. { user: { name: "Sam" } } becomes user.name=Sam) via URLSearchParams. The Decode mode parses a query string and rebuilds a nested object by splitting keys on dots.
How to Use
1. Toggle between To Params (encode) and To JSON (decode) at the top. 2. In encode mode, paste a JSON object; in decode mode, paste a query string. 3. Click the convert button. The output appears in the lower card. 4. Use Copy to copy the result.
Flattening Rules and Caveats
Nested objects are joined with dots (a.b=value). Null values become empty strings; arrays are treated as objects, so their numeric indices become dot keys (0, 1, ...) rather than repeated keys. Encoding uses URLSearchParams.toString, so values are percent-encoded. Decoding only splits on dots; it does not infer arrays or parse numbers, so every decoded value is a string.
▶How are nested objects handled?
▶What happens to arrays?
▶Are decoded numbers converted back to numbers?
▶Why do I see a convert error message?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee