JSON Unescaper
Decode one escaped JSON string.
About this tool
If the box is a quoted JSON string, it is parsed. Otherwise common escape sequences are expanded.
An incomplete escape sequence is rejected.
How to use it
- Open this page and provide the input it asks for.
- Set the options that are visible, then use Unescape.
- Read the result in the panel. Copy it or download it when a file is offered. The input stays in this browser.
Limitations
- An incomplete escape sequence is rejected.
A fragment decoded as string contents
Two attempts, both aiming at a string
The fragment is decoded as the inside of a JSON string. The first attempt takes the paste, escapes any raw double quotes already in it, wraps the whole thing in quotes, and parses that as JSON. When the parse yields a string, that string is the result. This path is how an interior fragment from the escaper, with backslash-n and backslash-quote sequences, becomes ordinary text again. When that attempt throws, a second attempt parses the paste itself and accepts the result only when it is a JSON string, quotes included. A parsed object, array, or number is rejected. The message asks for a JSON string, including quotes, or a fragment of string escapes.
Failures are syntax, not guesses
A bad escape, a truncated \u sequence, or a stray control character that JSON does not allow raw will fail both attempts. The page does not replace a broken escape with a question mark. It does not decode URL percent-encoding. Percent signs are ordinary characters here. Base64 is a different alphabet and a different page. If the box contains a full JSON document that is an object, use the formatter or the minifier. The unescaper will refuse it because the parsed value is not a string.
What comes back
The result is the decoded text, not a quoted JSON literal. Line breaks that were escapes become real line breaks. Quotes that were escaped become quote characters. The page does not pretty-print anything, because there is no structure left to print once the value is a string. If you needed the quotes kept for a later embed, the escaper is the other direction. Use this page when you have the interior of a JSON string, or a complete JSON string value, and you want the characters it denotes.
Privacy
Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.

