Menu

JSON Deobfuscator

Turn obfuscated JSON back into readable, pretty-printed form. Handles double-stringified payloads, \uXXXX escapes, HTML entities, Base64-wrapped JSON, escaped slashes, and runaway whitespace — all in your browser.

JSON Deobfuscator StudioAuto-Detect
Ready
Obfuscated JSON Input 0 chars
Deobfuscated JSON 0 chars
Complete Guide to JSON Deobfuscation

What JSON Obfuscation Actually Does

JSON is already a plain-text format, so "JSON obfuscation" is not encryption. It is a set of transformations that make JSON hard for a human to read, while keeping it valid for a parser:

  • Double-stringification — the JSON is wrapped in a string, then wrapped in another string: "\"{\\\"a\\\":1}\""
  • Unicode escape — every character is written as \uXXXX: "\u004a\u006f\u0068\u006e"
  • HTML entity encoding — characters replaced by &#NN; entities
  • Base64 wrapping — the whole JSON is Base64-encoded
  • Escaped slashes — \/ instead of / (common in PHP output)
  • Minification — all whitespace removed

Each of these is reversible. This tool applies the reversals in the correct order and then pretty-prints the result.

What This Tool Reverses

TransformationExampleReversed By
Double-stringified"{\"a\":1}"Repeated JSON.parse + string trim until real object
Unicode escape\u004a\u006f\u0068\u006eEscape decoder → John
HTML entitiesJoEntity decoder → to
Base64-wrappedeyJhIjoxfQ==atob() → {"a":1}
Escaped slashes\/Regex unescape → /
Minified{"a":1,"b":[2,3]}JSON.stringify(obj, null, indent)

Order Matters

The tool applies reversals in the correct order: Base64 → nested-stringification → HTML entities → Unicode escapes → escaped slashes → pretty-print. If you reverse them in the wrong order, you can get partial output or fail entirely. The checkboxes let you force a specific path if the auto-detect gets it wrong.

What It Cannot Do

  • It cannot decrypt encrypted JSON. If the JSON was encrypted with AES, RSA, or JWE, you need the key — this tool only handles encoding, not encryption.
  • It cannot decode custom JavaScript obfuscation. If the JSON is inside an eval(...) from javascript-obfuscator, use a JS deobfuscator first.
  • It cannot recover lost keys. If the obfuscation renamed keys ({"a":1} was originally {"name":"John"}), the mapping is gone — unless it is stored elsewhere.

Frequently Asked Questions

Is JSON obfuscation secure?
No. Everything this tool reverses is a text encoding, not encryption. Anyone can decode it, with or without this tool. Use it for readability only — not for protecting secrets.
Why does the input start and end with quotes?
That is the signature of double-stringification. The JSON object is stored inside a string, then that string is stored inside another string. The tool unwraps each layer with JSON.parse until it hits the real object.
What is a \uXXXX escape?
A Unicode escape is a way to write any character using its hexadecimal code point. \u0041 is A, \u20AC is €. This tool converts them back to the characters they represent.
What is Base64-wrapped JSON?
The entire JSON string has been Base64-encoded. The signature is a long string of A–Z a–z 0–9 + / = with no quotes or braces. The tool detects it and applies atob() to get the underlying JSON.
Why are slashes written as \/?
PHP's json_encode() escapes forward slashes by default, so URLs appear as https:\/\/example.com<\/code>. The tool unescapes them, restoring the original slashes.
Does this tool handle deeply nested JSON?
Yes, but the browser has a recursion depth limit (around 10,000 levels for JSON.parse). Real-world JSON never goes near that — the tool has no practical nesting limit.
Can I choose the indentation?
Yes. 2 spaces, 4 spaces, a tab, or minified (0 indent). The default is 2 spaces, which is the most common convention.
What if the input is not valid JSON at all?
The tool reports a clear error and shows where parsing failed. If the input is a JavaScript object literal (with unquoted keys or single quotes), you'd need a JS deobfuscator first — this tool only handles strict JSON.
Is my JSON uploaded to your server?
No. Everything runs in your browser. Your data never leaves your device.
Can I download the deobfuscated JSON?
Yes. Click Download to save the output as deobfuscated.json.

Related Tools

External Resources