Report Tool or Give Us Suggestions

JSON URL Encode

URL-encode JSON text for safe use in URLs and query parameters

L ading . . .

What is JSON URL encoding?

URLs only allow a limited set of characters. When you pass JSON inside a query parameter or fragment, you should percent-encode it so spaces, quotes, braces, and unicode characters do not break the link. This tool applies standard URL encoding (encodeURIComponent) to your JSON payload.

How this tool works

Paste JSON in the input area. With validation enabled, the text is parsed and minified before encoding so you know it is valid JSON. Turn validation off if you need to encode arbitrary text that is not strict JSON.

Common uses

  • Building APIs or deep links that carry a JSON blob in a single parameter.
  • Testing what a gateway or analytics tag will receive after encoding.

Frequently Asked Questions

Is this the same as Base64 encoding?

No. URL encoding keeps mostly readable percent sequences (%22 for a quote). Base64 is a different representation and is not interchangeable.

Why does validation report an error?

The input is not valid JSON (for example trailing commas or unquoted keys). Fix the JSON or disable validation to encode the raw string.

Is data sent anywhere?

No. Encoding runs locally in your browser.