Processed locally

JSON Unescape Online

Unescape JSON strings, inspect escape sequences and multi-layer depth, verify JSON validity, and copy raw or pretty-formatted JSON locally.

What this tool does

JSON Unescape Online safely decodes escaped JSON strings and escaped JSON content without code execution (eval-free). It detects backslash escape sequences (quotes, slashes, control characters, and Unicode escapes), handles multi-layer escaped strings, checks whether the unescaped result is valid JSON, and allows copying raw unescaped text or pretty-formatted JSON locally.

How to use

Follow the core workflow below. Use “Show in tool” to locate the real control in the live tool above.

  1. Choose whether to unescape or escape

    Use Unescape to decode JSON escape sequences, or switch to Escape for the reverse workflow when preparing text for a JSON string.

    UnescapeEscape
  2. Paste escaped JSON or a JSON string

    Add the escaped value you want to decode. The tool can handle a complete JSON string literal or escaped string content without executing it.

    Escaped JSON / JSON stringSample
  3. Unescape one layer or all detected layers

    Use Unescape once for a single JSON escaping layer or Unescape all layers when the value has been escaped repeatedly.

    Unescape onceUnescape all layers
  4. Review escape diagnostics

    Check escape types, malformed sequences, layer depth, and whether the final result is valid JSON before copying it.

    DiagnosticsEscape LayersValid JSON
  5. Copy the result you actually need

    Copy the raw unescaped value, or use Pretty JSON only when the final result parses as valid JSON.

    Copy outputPretty JSON
  6. Escape text back to JSON-safe form

    Optional

    Open Escape when you need the reverse workflow and choose escaped string content or a complete JSON string literal.

    EscapeJSON string literalCopy output
Success

You have inspected and unescaped your JSON string. You can copy the raw unescaped result or pretty-formatted JSON locally.

Copy outputCopy Pretty JSON

Examples

Escaped JSON object string

Decode {\"name\":\"Ada\"} into clean unescaped {"name":"Ada"}.

Escaped newlines and control characters

Convert \n and \t escape sequences into actual formatting characters for inspection.

Unicode escape sequences

Decode \u0041\u0064\u0061 and surrogate pairs into readable UTF-8 text.

Double-escaped JSON string

Run multi-layer unescape to safely strip multiple layers of backslash escapes.

Invalid escape diagnostics

Detect malformed escape sequences with character offset locations.

Common errors

  • Confusing unescaping with full JSON parsing or schema validation.
  • Using regex replacement to strip backslashes, which breaks valid backslashes in data.
  • Using eval() or unsafe JavaScript execution to unescape strings in custom scripts.
  • Double escaping strings when passing JSON payloads through loggers or message queues.
  • Assuming valid unescaped text is schema-valid JSON without running validation.
  • Pasting API tokens or credentials into external online unescape services.

AI workflow

Use Prepare AI-ready context to export a local Markdown summary of escape sequence metrics, layer depth, malformed sequences, and output JSON validity. Share the summary or unescaped result directly into your coding workflow without executing code.

Learn with this tool

Understand the concept, inspect a testable example, then open it in the tool above.

JSON & SchemaJSON Escape Characters Explained: Quotes, Backslashes, Newlines, and Unicode

Frequently asked questions about JSON Unescape