JSON String Escape / Unescape

Turn raw text (with newlines, tabs, and quotes) into the contents of a JSON string literal — or reverse it.

When you'd need this

Useful when hand-embedding a multi-line string (a log line, a code snippet, a regex) into a JSON document or API payload — Escape converts special characters like newlines, tabs, and quotes into their \n, \t, \" equivalents. Unescape does the reverse: it parses the input as a JSON string literal's contents and shows you the raw text.