← All Tools

Query String Builder & Parser

Edit URL query strings as a list of key/value pairs. Paste a URL or query string to round-trip through, switch between repeated-key, bracket-array, indexed-array, and comma-separated styles, and copy the encoded result back into your code.

Pairs

Key
Value
 
 
pairs 0 encoded length 0 distinct keys 0

Query String

Paste a URL or query string here to load it into the editor

Code Snippets

JavaScript — URLSearchParams

  Python — urllib.parse.urlencode
  

  curl --get with --data-urlencode
  

About Array Styles

There is no single standard for repeating keys in a URL query string. RFC 3986 only describes the encoding rules; the structure of values is application-specific. Common conventions include:

Pick the convention your server expects. Mixing them on the same key (e.g. tag[]=a&tag=b) usually parses inconsistently — this tool will normalize the output to the chosen style on each rebuild.