Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

URL Decode JSON

Paste a URL-encoded JSON string and instantly decode and format it into readable JSON

Your data never leaves your browser
URL-Encoded JSON Input0 chars, 0 lines
Decoded JSON Output0 chars, 0 lines
Ready·

Paste a URL-encoded JSON string — full of %7B, %22, and %3A — and get clean, indented JSON back in one click. Handles plus-sign spaces, nested objects, and double-encoded strings. And everything runs in your browser. Nothing gets uploaded.

How It Works

Paste Encoded String
→
URL Decode + JSON Parse
→
Formatted JSON Output

The decoder runs JavaScript's built-in decodeURIComponent() on your input, converting every percent-encoded sequence back to its original character. Once decoded, it parses the result as JSON and pretty-prints it with your chosen indentation — 2 spaces, 4 spaces, or tabs. If the decoded string isn't valid JSON, you still get the raw decoded text so nothing is lost.

Examples

API Response Stuck in a Query String

You grabbed a redirect URL from a webhook and the JSON payload is encoded inside a parameter.

INPUT
%7B%22status%22%3A%22ok%22%2C%22code%22%3A200%7D
OUTPUT
{ "status": "ok", "code": 200 }

Form Data with Nested Objects

A form submission encoded a user profile as a URL parameter. Plus signs represent spaces here — common in application/x-www-form-urlencoded data.

INPUT
%7B%22user%22%3A%7B%22name%22%3A%22Jane+Doe%22%2C%22email%22%3A%22jane%40example.com%22%2C%22roles%22%3A%5B%22admin%22%2C%22editor%22%5D%7D%7D
OUTPUT
{ "user": { "name": "Jane Doe", "email": "[email protected]", "roles": [ "admin", "editor" ] } }

Double-Encoded Config Blob

Sometimes middleware encodes an already-encoded string. The percent signs themselves get encoded — %25 instead of %. Decode once to get single-encoded text, then run it through again.

INPUT
%257B%2522key%2522%253A%2522value%2522%257D
OUTPUT (after 1st decode)
%7B%22key%22%3A%22value%22%7D

Who Uses This

👨‍💻 Backend Developers

Debugging API calls where JSON payloads are jammed into query parameters or redirect URLs.

🔍 QA Engineers

Reading encoded payloads from test logs and server access logs without writing a script each time.

📊 Data Analysts

Extracting tracking parameters and event data that analytics platforms pass around as encoded JSON.

🛡️ Security Researchers

Inspecting encoded payloads in URLs during penetration tests and vulnerability assessments.

Common Mistakes

Pasting the full URL instead of just the encoded JSON

If your URL looks like ?data=%7B%22id%22...&token=abc, copy only the value after data= and before the next &. Pasting the whole URL gives you query parameters mixed into your JSON.

Forgetting about double encoding

If the output still has percent signs like %22 after decoding, the string was encoded twice. Just paste the result back in and decode a second time. It is more common than you'd think — proxies and middleware love to double-encode things.

Expecting invalid JSON to auto-fix

The tool decodes the URL encoding perfectly, but it can't repair broken JSON. If the original string had a missing comma or unmatched bracket, you'll see the raw decoded text plus an error. Fix the JSON structure manually first.

Technical Details

Frequently Asked Questions

What is URL-encoded JSON?

It's JSON where special characters have been replaced with percent-encoded sequences so the string can travel safely inside a URL. Curly braces become %7B and %7D, quotes become %22, colons become %3A. You'll see this whenever JSON gets passed as a query parameter or stuffed into a redirect URL.

How do I decode URL-encoded JSON in JavaScript?

Call decodeURIComponent(encodedString) to get the raw JSON back, then JSON.parse() to turn it into an object. If you want it formatted, wrap it with JSON.stringify(obj, null, 2). That's exactly what this tool does under the hood.

Why does my JSON still look encoded after decoding?

Double encoding. Someone (or some middleware) encoded the string twice, so decoding once only peels off one layer. Paste the result back in and decode again. You'll know it's fully decoded when there are no %XX sequences left.

What happens to plus signs (+) in the encoded string?

Plus signs get converted to spaces. This follows the application/x-www-form-urlencoded convention that HTML forms use. If your original data actually contained a literal plus sign, it should have been encoded as %2B — if it wasn't, that's a bug in whatever encoded it.

Is it safe to paste sensitive JSON data here?

Yes. The decoding happens entirely in your browser with JavaScript. No data gets sent to any server, no requests are made, and nothing is stored. You could disconnect from the internet and it would still work. That said, don't paste passwords or secrets into any web tool if you're on a shared computer.

Share: