🔐 JSON Escape & Unescape

Escape JSON for embedding in strings, or unescape stringified JSON back to readable format.

📂 Drag & drop a file here, or click to browse
Input
Output

What is JSON Escaping?

JSON escaping converts a JSON object or string into a format that can be safely embedded inside another string. Special characters like quotes, backslashes, and newlines are escaped with backslash sequences.

Common Escape Sequences

CharacterEscapedDescription
"\"Double quote
\\\Backslash
Newline\nLine feed
Tab\tHorizontal tab
Carriage return\rCarriage return

When to Use

Escape vs Stringify

Escape adds quotes and escapes special characters, making the entire JSON a valid string literal. Stringify (JSON.stringify) converts a JavaScript object to a JSON string, then optionally escapes it for embedding.