Report

Help us improve this tool

Query String to JavaScript Object Converter

Convert URL query strings into JavaScript object literals with nested key parsing.

O M T

Turn URL parameters into JavaScript object literals

Query strings power filters, analytics tags, and API clients. Converting them into a JavaScript object literal lets you paste the result directly into config files, tests, or frontend bootstrapping code.

For JSON output instead of JavaScript syntax, use Convert Query String to JSON. To go from JSON to object literals, try JSON to JavaScript Object Converter.

Bracket and array notation

Keys such as user[name]=Ada or tags[]=js&tags[]=api can be expanded into nested objects and arrays when deep parsing is enabled. Comma-separated values can become arrays when that option is turned on.

Frequently Asked Questions

Can I paste a full URL?

Yes. The parser ignores the path and reads everything after the question mark.

Are numbers auto-converted?

Values stay as strings unless you post-process them. This keeps query strings faithful to their original text.

How is this different from JSON output?

JavaScript object literals allow unquoted keys and single-quoted strings, which is handy for JS modules. JSON requires double quotes on keys and strings.