Skip to tool

SQL Parse query string Online

Parse query-string text into key/value output.

The output updates as you type. The tool processes input in your browser.

Worked example

Check how repeated keys and bracket syntax are represented before consuming parsed results. Use PostgreSQL’s function reference to adapt the input to SQL syntax.

Sample input
a=1&b=two&arr[]=x&arr[]=y
Sample output
{
  "a": "1",
  "b": "two",
  "arr": [
    "x",
    "y"
  ]
}

Using this operation in SQL

The interactive result uses JavaScript. Check the database dialect. PostgreSQL text functions use SQL-style one-based positions and LIKE uses its own pattern syntax.

SQL reference