JSON URL Encode / Decode

URL-encode JSON or decode it from a URL.

0 chars
0 words
0 lines
0 chars
0 words
0 lines

JSON URL Encode and Decode Online

Filters, search options, and state objects are often passed to web apps as JSON inside a query parameter. The JSON URL encoder minifies and percent-encodes your JSON so it can be appended to a URL safely; the decoder takes an encoded parameter — or a whole URL — and gives you readable, formatted JSON again.

Encoding

  1. Paste your JSON on the Encode tab.
  2. The JSON is validated, minified (optional), and passed through encodeURIComponent.
  3. Append the result to your URL, for example ?filter=%7B%22status%22%3A%22open%22%7D.

Every character with a special meaning in URLs — { } [ ] " : , & = ? # and spaces — is encoded, and non-ASCII characters such as é or emoji become UTF-8 percent sequences.

Decoding

Switch to Decode and paste the encoded value or the complete URL. The tool extracts the first query parameter when given a URL, decodes %XX sequences, optionally converts + to spaces (as HTML forms do), validates the JSON, and pretty-prints it. Malformed percent sequences produce a clear error.

Common uses

  • Debugging dashboards and SPAs that keep filter state in the URL.
  • Building deep links to search results with complex criteria.
  • Reading tracking or analytics URLs that carry JSON context.
  • Preparing GET requests to APIs that accept JSON query parameters.

Privacy

Encoding and decoding happen in your browser. Filter objects and state stored in URLs can contain user IDs, emails, or internal names, so it's good to know that nothing you paste here is sent to a server or logged.

For general text and URLs, use the URL Encoder / Decoder. To pass JSON as Base64 instead, try JSON to Base64.

Frequently Asked Questions

Characters like {, }, ", :, spaces, and & have special meanings in URLs or aren't allowed at all. Percent-encoding turns them into %7B, %7D, %22 and so on, so the JSON can travel safely as a query parameter.

Yes. If you paste a URL or query string, the tool takes the value of the first parameter, decodes it, and formats the JSON. You can also paste just the encoded value.

Almost always. Whitespace and line breaks would be encoded as %20 and %0A, making the URL much longer. Minified JSON produces the shortest possible URL with the same data.

The URL standard sets none, but browsers, proxies, and servers do — around 2,000 characters is a safe practical limit, and many servers reject URLs over 8 KB. For bigger payloads use a POST body instead.