Skip to content
Jellykit

Query String Builder

Type name=value lines and get a correctly encoded query string or full URL, with lists written in the style your server expects.

  • Runs on your device
Loading tool

About Query String Builder

Write one parameter per line as name=value and get the encoded query string as you type. Accents, emoji, spaces, ampersands and equals signs in values are all percent-encoded, so the server reads back exactly what you wrote.

Repeat a name to send a list, and choose how lists are written: repeated (a=1&a=2), with brackets for PHP and Rails (a[]=1&a[]=2), indexed (a[0]=1), or comma-separated. Add a base URL to get a complete link; parameters it already has are kept, and a #fragment stays at the end.

How it works

  1. Each line is split at its first =, so a value may contain = signs. Spaces around the name and the value are dropped, and blank lines are skipped.
  2. Names and values are encoded with the same rules as encodeURIComponent: everything except letters, digits and - _ . ! ~ * ' ( ) becomes %XX. Choose + instead of %20 for spaces if your server expects form encoding.
  3. In the repeat style every line keeps its place. In the bracket, index and comma styles, all values of a repeated name are written together, where the name first appears.

Questions

Which list style should I use?

Repeated names are the web default and what URLSearchParams and most frameworks read. PHP and Ruby on Rails expect brackets, some JavaScript libraries read indexes, and many REST APIs document a comma list. Check what your server parses.

Why are the brackets in a[] not encoded?

Servers that use the bracket style read them either way, and leaving them as written keeps the query readable. Browsers send them unchanged.

Is the URL opened or checked online?

No. The base URL is only checked for its form in this page; nothing is requested. Up to 1 MB of parameters can be built at once.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.