Code Converters

JSON String Escape & Unescape

Escape and unescape strings for JSON — convert quotes, backslashes, newlines, tabs, and unicode characters to their JSON-safe equivalents. Live conversion, no sign-up required.

Input
0 chars
Options
Mode

Converts special characters to their JSON escape sequences: \"\\\n\t\r and unicode \uXXXX. Useful for embedding strings inside JSON values.

Waiting for input...
Output
Escaped string will appear here