Build query string

Build an encoded URL query string from ordered name-value pairs.

freeworks offlinenothing uploaded
ToolQuery String Builder
Input
Output

How it works

Pairs use form-urlencoding: spaces become plus signs, reserved bytes become percent escapes, and repeated names remain repeated in insertion order. Empty values follow the selected serialization mode.

  • Form encoding matches HTML and URLSearchParams.
  • Repeated pairs preserve multi-select fields.

Worked example

Build Query String
Build a URL query string from key-value pairs
Input
											page=1
limit=20
sort=name
										
Output
												?page=1&limit=20&sort=name
											

When to use this

Filter links, form submissions, and API pagination build query strings.

Edge cases

  • A literal plus must become percent-encoded.
  • Repeated values should not be joined with commas.
  • A slash in a query value is data and must be encoded.

References