Codec64

Query Parameter Editor

Your data stays in this browser.

Convert URL query parameters to JSON or build a query string from JSON.

SourceQuery string
1 line41 bytesUTF-8
Target
JSON
4 lines37 bytesUTF-8

How to parse and build query strings

  1. Paste a full URL, a query beginning with ?, or the query text alone.
  2. Choose Query string as source and JSON as target, or swap them to build a query.
  3. Select Convert, then copy result.

Duplicate names and empty values

Repeated names become arrays in encounter order:tag=one&tag=two → { "tag": ["one", "two"] }. Empty values become JSON null, and + decodes to a space while %2B stays a literal plus.

Build a query string from JSON

Use a JSON object whose values are strings, numbers, booleans, null, or arrays of these values. Nested objects are rejected because a query string cannot represent them. A base URL or path already in the target is kept, and ? appears only between that base and the parameters.