jellykit logojellykit

JSON Escape & Unescape

Escape raw text or JSON into a safe JSON string literal, or unescape stringified JSON payloads.

Loading JSON Escape & Unescape in your browser — 100% client-side with zero uploads.

Related data tools

All Data tools

JSON to CSV

Flatten JSON arrays and objects into clean, spreadsheet-ready CSV files.

Data

JSON Formatter

Beautify, minify, sort keys, and validate JSON syntax with clear error messages.

Data

JSON ↔ YAML Converter

Convert seamlessly between JSON and YAML with validation and indentation control.

Data

JSON to TypeScript Types

Infer clean TypeScript interfaces or type aliases from any JSON payload with nested models.

Data

JSON Diff Viewer

Deeply compare two JSON documents by path to highlight added, removed, and modified values.

Data

JSON Flatten & Unflatten

Flatten nested JSON objects and arrays into dot-separated keys or rebuild nested JSON structures.

Data

About JSON Escape & Unescape

Escape raw multiline strings, logs, or JSON payloads into valid JSON string literals—or unescape escaped JSON strings back into readable text with optional auto-formatting.

How to use JSON Escape & Unescape

  1. 1

    Select Escape String or Unescape String.

  2. 2

    Paste raw text/JSON to escape or an escaped string containing \n, \", or \\ sequences to unescape.

  3. 3

    Toggle outer quotes or JSON auto-formatting as needed, then copy the clean result.

Frequently asked questions

Why would I escape JSON into a string?

Escaping is needed whenever you embed a JSON document inside another JSON string field, an environment variable, a log fixture, or a code snippet.

What happens if I unescape a string that contains nested JSON?

Enable "Auto-format if unescaped text is valid JSON" and the tool will automatically pretty-print the decoded inner JSON object or array.

Does it preserve Unicode characters and line breaks?

Yes. Standard JSON.stringify and JSON.parse handle newlines, tabs, quotes, backslashes, and Unicode sequences accurately.