Query String to JSON Converter
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
Query String to JSON Converter transforms URL query strings into JSON format and JSON back into query strings. Paste a query string (e.g., "?foo=bar&baz=qux") and see it as structured JSON, or paste JSON and get a URL-encoded query string. The tool handles nested parameters, arrays in multiple styles (bracket, repeat, comma), URL encoding/decoding, and empty value preservation. A preview shows the converted result, and you can copy it to your clipboard or download it as a file. The tool supports both directions, making it easy to work with URL parameters in JavaScript applications.
WHERE IT RUNS
The extension runs entirely within your browser's local environment using the BotGentz framework. All query string parsing, JSON generation, and data processing occur on your machine without any network requests. No query string data, JSON output, or user activity is ever transmitted, uploaded, or stored externally. The tool works on any website and respects the browser's security boundaries, operating within the isolated extension sandbox. Data conversion uses pure JavaScript object traversal and string manipulation.
HOW TO USE
Click the extension toolbar icon to open the Query String to JSON Converter panel. Paste a query string (with or without the leading ?) or JSON data into the input area. Click "Convert" to generate the output—the tool automatically detects whether you entered a query string or JSON. The preview shows the converted result. Click "Copy" to copy the output to your clipboard. Click "Download" to save the output as a file. Click "Swap Direction" to convert the output back to the original format. Toggle "Decode URIs" to automatically decode URL-encoded values. Toggle "Preserve empty values" to include empty parameters in the output. Toggle "Sort keys" to alphabetically sort object keys. Select the "Output Format" (Pretty or Compact) to control JSON formatting. Select the "Array Style" (bracket, repeat, or comma) to control how arrays are serialized. The tool updates automatically when you change settings.
THE QUERY STRING ENGINE — WHY IT WORKS
Most query string parsers only handle simple key-value pairs and fail on nested structures. This tool uses a comprehensive parsing engine that supports nested objects (foo[bar]=baz), arrays (foo[]=1&foo[]=2), and mixed types. The parser splits the query string by &, then for each pair, it parses the key to detect array syntax ([] or [key]) and builds a nested object structure. The reverse conversion traverses the object tree and serializes it back to a query string using the selected array style. The URL encoding/decoding uses encodeURIComponent and decodeURIComponent, with + handling for spaces. The array style options give you control over how arrays are represented: bracket style (foo[]=1&foo[]=2), repeat style (foo=1&foo=2), or comma style (foo=1,2). This approach provides full control over query string serialization and deserialization.
THE PANEL
The Query String to JSON Converter panel is fully draggable by its title bar and remembers its position on screen per website. It snaps to the edges of your browser window for clean alignment. Collapse the panel to a compact icon strip using the minimize button, restoring it with a single click. Resize the panel by dragging any edge or corner; the input area, output preview, and controls adjust proportionally. Press the Escape key to close the panel instantly. The panel maintains independent state for each browser tab, allowing you to convert query strings in multiple tabs simultaneously.
PLEASE NOTE
This extension requires the free BotGentz extension framework to be installed and enabled. The tool automatically detects input format; very short or ambiguous inputs may be misdetected. The array styles affect the output query string; bracket style is most commonly used in PHP applications. URL decoding uses UTF-8 encoding; other encodings may produce unexpected results. Empty value preservation includes keys without values in the output. All conversion data is processed locally and is never transmitted, logged, or shared. The extension requests no network permissions and functions entirely offline. The source code is fully auditable and available for review.