Building a link with several filters
Express the filters as an array in JSON and the output repeats the key correctly, which is what most backends expect.
Turn a JSON object into a properly encoded URL query string in your browser, with arrays repeated correctly.
Maintained by Roshan.
Converts JSON into Query string in this tab. Configuration files routinely hold hostnames, keys and credentials, so nothing here is sent anywhere.
Find related browser-local tools for nearby tasks without starting another search.
Browse all developer and data toolsBuilding a query string by hand is one of those tasks that seems too simple to get wrong and is wrong surprisingly often. Every value needs percent-encoding, and the characters that need it are not the ones people expect: a space, an ampersand and an equals sign are obvious, but so are the plus sign, the hash and a good deal of punctuation, and missing one produces a URL that works for most inputs and breaks for a particular customer name. This converter uses the browser's own encoder, which is the same code that would encode the URL if the browser built it. Arrays are written as the key repeated, which is the convention almost every server-side framework understands, rather than any of the bracketed variations that only some do.
Express the filters as an array in JSON and the output repeats the key correctly, which is what most backends expect.
Construct the parameters as JSON, convert, and append to the endpoint. The encoding will be correct even for values containing punctuation.
As the key repeated once per value. That form is understood by the widest range of servers, though a few expect bracketed indices instead.
No, deliberately, so the result can be appended to a URL that may already have a query.
They become JSON text inside the value. Query strings have no agreed syntax for nesting.
Yes. The browser's own encoder is used, so the result matches what a browser would produce.
No. URLs are recorded in server logs, proxies and browser history. Use a request body instead.
Turn a URL query string into readable JSON in your browser. Repeated keys become arrays rather than being lost.
Percent-encode and decode URLs in your browser, choosing between encoding a value inside a URL and encoding a whole address. Shows which characters differ.
Turn JSON into well-formed XML in your browser, with escaping and element naming handled correctly.