Query String Builder

Build one application/x-www-form-urlencoded pair from a key and a value.

Use this tool

Result

The result appears in this panel after you run the tool.

About this tool

The key and the value are encoded and joined with an equals sign. Spaces and reserved characters are encoded rather than left raw.

Paste pairs together yourself when you need a longer query. This page’s result is the single pair.

How to use it

  1. Enter the key and the value.
  2. Build the query.
  3. Copy the pair. A second pair is a second use of the page, not a list of rows.

Limitations

One pair, encoded, with no leading question mark

A single key and a single value are appended

One key and one value become a URLSearchParams string. The page reads the key field and the value field, and if the key is not empty it appends that pair and returns the encoding. The result has no leading question mark. You add the question mark yourself when you splice the string onto a path. A blank key produces an empty result, because the pair is skipped. The value may be empty, and an empty value is still encoded when the key is present.

Each run sees only the fields as they are now. Pairs are not accumulated across runs. If you need three parameters, this control does not offer three rows. Encode them separately or edit the result. The URL parser is the page that reads a finished absolute URL and lists every parameter it finds. This page writes one.

How characters are escaped

Spaces become plus signs, which is the form URLSearchParams uses. Other characters that must be percent-encoded are percent-encoded. A slash in the value is encoded rather than treated as a path. An ampersand in the value is encoded so it does not look like a second parameter. The key is encoded too. The page does not accept a raw query string in the value and leave its ampersands alone. If you paste a=b&c=d into the value, those characters are data in one value, not extra pairs.

What you still assemble

There is no host, path, or fragment on this page. The parser shows those for an absolute URL. A hash is not appended here. Duplicate keys are not generated unless you run a workflow outside this control. Use the builder when you have one pair and you want the encoding rules of the URL parameter class. Read the result into a full URL on the parser if you want to see how that class splits it again.

Privacy

Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.