Query String⇄JSON
params 0
keys 0
Query String
drop a .txt file here0 bytes
QS
JSON
JSON
drop a .json file here0 bytes
What is a URL query string to JSON converter?
A query string is the part of a URL after the ? — the format used to pass data in GET requests, redirect URLs, tracking links, and shareable app state, like ?category=shoes&size=10&color=red. It's how a browser or API receives structured input, but it's not a format you'd want to work with directly in code.
Converting it to JSON turns that flat, percent-encoded string into something readable and directly usable — while converting JSON back the other way lets you build a valid query string from data you already have, without hand-assembling and escaping it yourself.
Frequently asked questions
What happens with repeated keys, like skills=math&skills=programming?
They're automatically combined into a JSON array:
"skills": ["math", "programming"], rather than the second value silently overwriting the first.Does it support nested data, like user[name]=Ada?
Yes — bracket notation is supported for nesting (
user[name]=Ada&user[age]=28 becomes a nested user object) and for arrays (list[]=a&list[]=b). This is a common convention, used by PHP, Ruby on Rails, and the popular qs library, though it isn't a universal standard — some APIs expect a different nesting scheme.Why is there a "Smart types" / "Strings only" toggle?
Every value in a real query string is technically a string — there's no native number or boolean type. "Smart types" converts things like
28 and true into real JSON numbers and booleans for readability. "Strings only" keeps everything as a string, which guarantees an exact round trip back to the original query string.Can I paste a full URL instead of just the query string?
Yes — paste the whole URL and the converter finds the
? and ignores everything before it, including stripping off any trailing #fragment.