JSON Unescape

    Unescape JSON strings back into readable, formatted JSON for debugging payloads and logs.

    Browser only Plain text output
    Escaped JSON Input
    1 line
    1
    Choose unescape depth

    Choose 2× only when the input was escaped through two string layers.

    Unescaped Output
    1 line
    1
    Input chars
    446
    Output chars
    0
    Escapes
    50
    Lines
    1

    A field guide to escaped JSON

    Unescape JSON and read what the log is saying

    Paste a JSON string full of \", \\, \n, or \uXXXX sequences and turn it back into readable text. This free online JSON unescape tool handles one or two layers, so an API field, copied log line, or nested payload is easier to inspect before you format or share it.

    JSON unescape online
    Unescape JSON string
    Double-escaped JSON
    Decode JSON escapes
    Unescape Unicode
    Readable API logs

    Before and after: reading an order event

    A log copied cleanly can still be hard to read.

    Picture an on-call engineer reviewing an order update from a test environment. The log viewer has stored the request body as a string, so each quote appears with a backslash and the whole payload has been squeezed onto one line. The data may be intact; it is simply shown at the wrong layer for a quick review. One unescape pass removes the outer string encoding. If a queue or second log wrapper serialized it again, a second pass reveals the inner document. The sample below shows both paths with the same small payload.

    Before · escaped once

    {\"event\":\"order.updated\",\"note\":\"Packed\"}

    After · unescape 1×

    {"event":"order.updated","note":"Packed"}

    Before · escaped twice

    {\\\"event\\\":\\\"order.updated\\\",\\\"note\\\":\\\"Packed\\\"}

    After · unescape 2×

    {"event":"order.updated","note":"Packed"}

    Decode only the layers that are present. After one pass, check whether the output is readable JSON or still contains escape sequences. The 1× and 2× buttons are direct actions; choosing 2× runs two passes without requiring a second click.

    What changes during unescaping

    Backslash codes become their characters

    JSON strings represent some characters with a backslash followed by a short code. A quote inside a string appears as \"; a backslash appears as \\; a line feed is \n; a tab is \t. Unescaping reads those sequences and restores the characters they represent. A value such as \u00E9 becomes é when the containing JSON string is parsed. The JSON specification requires quotes, backslashes, and control characters to be escaped in strings; its string syntax also defines the common codes and Unicode form. See RFC 8259, section 7.

    The visible text may change length: \n becomes a line-feed character, and a Unicode escape can become one visible symbol. That is expected. For example, the string "{\"message\":\"Line one\\nLine two\"}" unescapes to JSON text {"message":"Line one\nLine two"}. Formatting that result in the output editor makes the object easier to scan while keeping the message valid JSON.

    Choose the right depth

    Unescape JSON 1× or 2×?

    Use Unescape JSON 1×

    Use one pass when the input has one enclosing JSON string layer. A log field containing {\"event\":\"order.updated\",\"note\":\"Packed\"} should reveal the ordinary JSON document after one decode.

    Use Unescape JSON 2×

    Choose two passes when the value was serialized twice, such as JSON stored in a string that was then written into another JSON log record. The first result may still look escaped; the second removes the remaining layer.

    Repeatedly unescaping plain text can change meaningful backslashes. Check the source format or compare with the original payload before applying another pass.

    A practical routine

    How to use the JSON unescape tool

    The quickest way to avoid removing too much is to start with the exact field that looks escaped, not an entire surrounding log if it has extra labels or timestamps.

    01

    Copy the value

    Select the escaped string from your API response, test fixture, database field, or log line. Keep its surrounding quotes if they belong to the value; this tool accepts quoted and unquoted escaped text.

    02

    Paste or load it

    Paste into the input editor, load the built-in sample, or drop a .json, .txt, or .log file. The file is read by the browser.

    03

    Choose 1× or 2×

    Use one pass for a single encoded string. Choose two only when you can see that one layer of backslashes remains after decoding once.

    04

    Inspect, format, copy

    Check the output status. If it is valid JSON, use Format to indent it or Minify to compact it, then copy or download. If it is plain text, copy the text without trying to parse it as an object.

    A troubleshooting workflow

    From a one-line API log to a readable body

    An API gateway records a field like body as escaped text. The log line shows {\"event\":\"order.updated\",\"note\":\"Packed\"}, and a quick glance makes it difficult to tell whether note contains a normal quote, a newline, or another encoded JSON document. Paste the field value and click Unescape JSON 1×. The result becomes {"event":"order.updated","note":"Packed"}, which is ordinary JSON text again.

    Next, check the status above the result. If it says valid JSON, use the output's Format action to expand the object across lines and review its keys. If the decoded value is itself a string containing escaped JSON, use the 2× button directly. Do not press 2× just because there are many backslashes: a Windows path or a regex pattern can contain meaningful backslashes that are not another JSON wrapper.

    This distinction is useful in incident reviews. A parser error may come from an outer logging layer rather than the application payload. Decode one boundary, inspect the result, and only then decide whether another layer remains. That keeps the final output tied to the representation the service actually stored.

    Read API responses and webhook records

    A response viewer may display a JSON body inside a quoted field. Unescape that field to recover its readable content, then format it if the result is a JSON object or array.

    Inspect logs and database values

    Single-line log messages often encode quotes and line breaks so they can travel inside a JSON record. Unescaping restores the original line breaks and makes nested payloads easier to follow.

    Review fixtures and configuration values

    Test snapshots, mock fixtures, and configuration files sometimes store a serialized JSON document as text. Decode the required layer before comparing keys or checking values.

    Keep the steps separate

    Unescaping is not parsing or repairing

    Unescaping changes the characters in a string. Parsing checks whether the resulting text follows JSON syntax and turns it into a runtime value; in JavaScript, JSON.parse() performs that separate parsing step. Formatting changes whitespace and indentation for valid JSON. Decode the string layer first, check whether the result is JSON, then format it if you want a readable layout.

    If a log excerpt was truncated or the original JSON had a missing comma, unescaping will not repair it. This tool can still show the decoded text, while its output status indicates whether that text parses as JSON. Use a JSON repair tool only when the source itself is malformed, and compare any repairs against the authoritative request or response.

    Local processing

    Inspect private values in your browser

    This tool runs its unescape and JSON parsing steps in browser JavaScript. Copy, download, sample loading, and local file reading also happen in the browser, so the page does not need to upload the text to decode it. That is useful when reviewing internal test payloads or logs that contain customer data.

    Browser-local processing does not change how you should handle the result. Redact tokens, passwords, and personal data before pasting into a ticket, chat, or shared document. Keep diagnostic copies in the same access-controlled systems as the original logs.

    Quick reference

    Common JSON escape sequences and their decoded values

    SequenceDecoded characterTypical place you see it
    \"Double quoteA quoted string or object key
    \\BackslashWindows paths and nested escaping
    \nLine feedA multiline message stored on one log line
    \rCarriage returnText from a CRLF line ending
    \tTabIndented text inside a string
    \u00E9éUnicode text represented by a code point
    \/Forward slash (/)An optional escaped slash

    JSON unescape questions

    Answers to common questions about decoding a JSON string, nested layers, Unicode, and parser errors.

    It reverses JSON string escapes so sequences such as \" and \n become their represented quote and line break. The decoded result is text; if it is a JSON object or array, you can then format it in the output editor.

    Complete JSON toolkit

    Move from converting a string to inspecting, validating, or repairing the JSON it contains.