JSON Escape/Unescape Tool

Escape or unescape JSON strings for use in code

Escape: Converts special characters to escape sequences (e.g., newlines to \n, quotes to \", etc.) for embedding in JSON or code.

Input String

Escaped Output