Skip to content
My Tiny Utils

Search tools

Type to find a tool, then press Enter to open it.

JSON Escape / Unescape

Escape text into a safe JSON string literal, or unescape a JSON string back to plain text. Handles quotes, newlines, and Unicode.

Processed locally in your browser — nothing is uploaded.

0 characters

Escaped

Output appears here…

About JSON Escape / Unescape

Escaping turns arbitrary text — quotes, newlines, tabs, Unicode — into a valid JSON string literal you can embed in a document or code. Unescaping reverses it, turning an escaped JSON string back into readable text.

Common uses

  • Embed a multi-line string (like a certificate or template) into a JSON config
  • Decode an escaped string copied from a log or API response
  • Put JSON inside JSON without breaking it

Example

Input

Line "one"
Line two

Output

"Line \"one\"\nLine two"