Tool guide
About this tool.
- Query parameters are name/value pairs encoded using URLSearchParams form semantics. Parsing converts + to space and percent-decodes UTF-8; serialization uses + for spaces.
- Parsing accepts a bare query, a leading ?, or a URL or path before the first ?, as long as no = or & comes before that ?. The fragment is excluded. Repeated names become arrays of strings; every scalar remains a string.
- Building accepts a JSON object with scalar values or arrays of scalars. Arrays produce repeated keys, null entries are omitted, and nested structures are rejected rather than converted to [object Object].
- Inspect duplicate parameters without losing values.
- Build a correctly encoded query for development requests.
- Compare literal plus signs, empty values and unusual names before using a framework-specific decoder.
Choose Parse to JSON or JSON to query.
Paste query text/full URL for parsing, or a JSON object for building.
Run conversion and inspect the report or directly copyable query.
Download the result. Parsed arrays group equal names, so exact cross-key pair ordering is not retained on a round-trip.
- ?q=one&q=two → {"q":["one","two"]}.
- q=dev+tools → {"q":"dev tools"}.
- q=dev%2Btools → {"q":"dev+tools"}.
- JSON to query: {"tag":["a","b"]} → tag=a&tag=b.
- JSON to query: {"active":true,"skip":null} → active=true.
- /search?q=1 → {"q":"1"}; q=a?b&empty= → {"q":"a?b","empty":""}; https://example.com/path#fragment → {}.
- Input is limited to 1,048,576 UTF-16 characters.
- Values are not guessed as numbers or booleans when parsing. Empty values remain empty strings.
- Null entries and empty arrays are omitted during building. Objects or nested arrays are unsupported. A number a double cannot hold keeps its exact digits, and a duplicate key keeps its last value with a warning in the summary.
- No brackets-to-object conversion, path parsing or route inference occurs.
- URLSearchParams is forgiving of malformed percent escapes; this is not a strict percent-encoding validator.
- Form encoding is different from encodeURIComponent: spaces serialize as +.
- Queries can contain credentials or personal data. Copy/download does not redact them.