Query String Builder

Add key/value rows; get a correctly URL-encoded query string out. Supports array (a[]=1) and bracket-less repeated keys.

Enter input above to see the result.

What is this for?

A query string is the part of a URL after the ? — a sequence of key/value pairs like ?name=John&age=30. Building one by hand is tedious and error-prone: spaces and special characters must be percent-encoded, the syntax is strict, and if you need to pass multiple values for one key, there are three or four competing conventions to choose from. This tool lets you type your keys and values in a simple form, mark any that should repeat, and generates a correctly-encoded query string ready to paste into your URL or API request.

When to use it

How it works

Common gotchas

Encoding details