URL ↔ JSON

Parse URL query strings to JSON and serialize JSON back to query strings

Shortcuts: Ctrl+Enter run · Ctrl+L clear · Ctrl+D download

About URL ↔ JSON

This tool parses URL query strings into JSON objects and serializes JSON back into URL query strings. It is useful when debugging API calls, building query string parameters programmatically, or converting URL parameters into a data structure you can manipulate in code.

  • ✓Parses any URL or query string into a JSON object keyed by parameter name
  • ✓Handles repeated parameters as arrays (e.g., `?tag=a&tag=b` → `{"tag":["a","b"]}`)
  • ✓Serializes a JSON object back to a URL-encoded query string
  • ✓Decodes percent-encoded characters automatically

Query Strings, Decoded

The part of a URL after the question mark is a query string: a list of key=value pairs joined by ampersands. It is how search pages, tracking links, OAuth redirects and countless APIs pass parameters. Long query strings are hard to read because values are percent-encoded — spaces become + or %20, an ampersand inside a value becomes %26, and non-ASCII characters turn into sequences like %C3%A9. Converting to JSON decodes everything and lays the parameters out one per line.

URL → JSON

Paste either a full URL or just the query string. The tool decodes each parameter using the browser's standard URLSearchParams, the same parser your frontend code uses, so the result matches what your application will actually receive.

https://example.com/search?q=json+tools&tag=a&tag=b&page=2&empty=

→

{
  "q": "json tools",
  "tag": ["a", "b"],
  "page": "2",
  "empty": ""
}
  • ·A key that appears more than once (tag=a&tag=b) becomes an array, preserving order
  • ·All values are strings: query strings have no types, so page=2 is "2", not the number 2
  • ·A key with no value (empty=) becomes an empty string
  • ·The path and #fragment are ignored; only the query string is converted

JSON → query string

Switch direction to build a query string from a flat JSON object. Each key becomes a parameter, arrays become repeated keys, and values are percent-encoded for you, so { "q": "café & co" } becomes q=caf%C3%A9+%26+co. Numbers and booleans are converted to their text form.

Query strings are flat by nature, so nested objects are not supported: an object value would be sent as the meaningless text [object Object]. If your API expects nested parameters, check its documentation — conventions such as filter[status]=open or filter.status=open vary from framework to framework, and you need to write those keys explicitly.

Useful for

  • ·Inspecting UTM and other tracking parameters on marketing links
  • ·Debugging OAuth and SSO redirects, where state, scope and redirect_uri are packed into the URL
  • ·Turning a request you copied from browser DevTools into a readable list of parameters
  • ·Building test URLs with tricky characters without hand-encoding them

Tip: Values in query strings end up in server logs, browser history and analytics tools. Never put passwords or API keys in a URL.

Frequently Asked Questions

Ad