Query String to JSON Converter
Decode URL query strings into JSON and keep repeated, empty, and valueless parameters distinct.
query-string-to-json-converterLOCAL WORKSPACE
Enabling local controls…
Converts in your browser. Maximum input: 32 KiB.
Preview: first 32,000 characters. Copy, download and expanded text retain all content. Select complete text if copying fails.
{
"city": "台南",
"tag": [
"a+b",
"with spaces"
],
"page": "2"
}Expand complete selectable text
{
"city": "台南",
"tag": [
"a+b",
"with spaces"
],
"page": "2"
}How to use this tool
Paste a query string, URL, or path with a query. Copy the JSON or download it as a UTF-8 file. No URL is opened.
When not to use it
Repeated keys become arrays. A key without = becomes null, a key with an empty value becomes an empty string, and bracket notation stays in the key. For a raw ? in a key, use %3F or prefix the whole query with ?.