Skip to content
Text Mechanic
Developer Tools

JSON Escape / Unescape

Escape text for use inside a JSON string, or reverse it.

Escaping turns a raw value into something that can sit inside a JSON string: quotes, backslashes, newlines and tabs become \", \\, \n and \t. Unescaping reverses it. This is what to reach for when you need to embed a block of text in a config file or a payload by hand.

Options
InputText is processed entirely in your browser.
0lines0words0characters0 B
Output
0lines0words0characters0 B