Query String Builder

Add a name and a value per row and the encoded query string and full URL appear below as you type. Characters such as &, =, + and é are escaped so the server reads back exactly what you typed.

How it works

Each name and value is encoded with the same rules as JavaScript’s encodeURIComponent: letters, digits and - _ . ! ~ * ' ( ) stay as they are, and everything else becomes UTF-8 bytes written as %XX. That includes & and =, which would otherwise end the value early, and +, which a server would read as a space.

The pairs are joined with &. If you give a base URL, the query is added after it: with ? if it has no query yet, with & if it already has one, and before any #fragment, which must stay last.

Spaces can be written as %20 or as +. Both decode to a space on any normal server; + is what HTML forms send, %20 is safe everywhere in a URL. Everything runs on this page.

How to use it

  1. 1 Optionally paste a base URL, such as https://example.com/search.
  2. 2 Type a name and a value in each row. Add a parameter for more rows, or Remove one you do not need.
  3. 3 Pick how spaces are written: %20, or + as forms send them.
  4. 4 Copy the query string or the full URL.

Good to know

  • Rows with no name are left out. A name with an empty value is kept as name=, which most servers treat differently from a missing parameter.
  • Use the same name in two rows to send a list, as a multi-select filter does.
  • Do not encode values yourself before typing them in. %20 typed into a value is sent as %2520, a literal percent sign followed by 20.
  • To check a query someone else built, paste it into the Query String Parser.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Why "fish & chips" becomes fish%20%26%20chips

Suppose you want to link to a search for "fish & chips" in Zürich. The tempting way is to paste the words straight in: ?q=fish & chips&city=Zürich. A server reading that sees something else entirely. The & after "fish " ends the first parameter, so q is "fish ", then comes a parameter called " chips" with no value, then city. One unescaped character turned two parameters into three, and the search is for the wrong thing.

Encoding fixes this by writing every character that has a job in a URL as a percent escape. The space becomes %20 and the & becomes %26, so the first value is fish%20%26%20chips, which can only be read one way. The city needs a different kind of care. ü is not ASCII, so it is first turned into its UTF-8 bytes, C3 and BC, and each byte is written as % plus two hex digits: Z%C3%BCrich. The full query is ?q=fish%20%26%20chips&city=Z%C3%BCrich. With the base https://example.com/search the link is https://example.com/search?q=fish%20%26%20chips&city=Z%C3%BCrich. Type the same two rows above and you get exactly this.

Switch spaces to the + style and the first value becomes fish+%26+chips. That is how a browser submits an HTML form, and it decodes to the same text. The catch is the plus sign itself: if a value really contains +, such as "1+1", it must be written 1%2B1, or the server will read a space. The builder does that for you in both styles, because encodeURIComponent always escapes +.

The base URL matters too. If it already has a query, such as https://example.com/search?lang=en, the new parameters are joined with & instead of a second ?, which would otherwise become part of a value. And if it ends in a fragment like #results, the query goes before it, because everything after # stays in the browser and is never sent to the server. A query placed after the # would simply vanish from the request.

There are limits to keep in mind. This builds flat name=value pairs. Nested shapes such as filter[color]=red are just names with brackets in them, and the brackets get escaped like any other character (filter%5Bcolor%5D); PHP, Rails and most JavaScript parsers still read them correctly, but check what your server expects. It also does not check that the base URL points anywhere real, since nothing is fetched. And it will not stop you from putting secrets in a query string, which ends up in browser history and server logs. Send those in a request body or a header instead.

Frequently asked questions

Should spaces be + or %20?

Either works for a query string: every common server decodes both as a space. + is what browsers send from an HTML form, so it matches what a form would produce. %20 is the one that is also correct in the path part of a URL, so it is the safer habit.

Why is my + turned into %2B?

Because a bare + in a query means a space. If "1+1" were sent as is, the server would read "1 1". Escaping it as %2B is the only way the plus sign arrives intact.

Why are accented letters turned into two escapes?

URLs carry bytes, and letters outside ASCII take more than one byte in UTF-8. ü is the two bytes C3 and BC, so it becomes %C3%BC. The server decodes the bytes back into ü.

Is anything I type sent anywhere?

No. The encoding happens on this page and nothing is fetched or stored.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.