JSON Escape / Unescape
Escape text into a JSON string literal, or decode an escaped string back to readable text.
Escaping and unescaping JSON strings
Escape turns raw text into a valid JSON string body — a double quote becomes \", a newline becomes \n, a tab becomes \t, and (optionally) any non-ASCII character becomes a \uXXXX sequence. Unescape does the reverse: paste a string full of \uXXXX, \n or \tescapes — a log line, an API payload, a stringified blob — and get clean, readable text back. Decoding is lenient, so stray quotes and raw line breaks don't break it.
Need a different flavour? The Unicode escape converter focuses purely on \uXXXX code points, the backslash escape converter handles generic string escaping, and Base64 encodes binary-safe payloads. Everything runs entirely in your browser.