JSON string escape
ClientEscape a string for safe JSON quoting—quotes, slashes, controls.
"Line1\n\"quoted\""
Nearby workflows on Toolcore
- Unicode escape encode — Escape text to \uXXXX JavaScript-style Unicode escapes. when the payload needs a different encoding or escape format.
- Shell argument escape — Wrap text in single quotes for POSIX shell arguments. when the payload needs a different encoding or escape format.
- Unicode & JS escapes — Encode UTF-8 to \u{hex} escapes or decode \u{…}, \uXXXX, \xNN, and \n \t—client-side. when the payload needs a different encoding or escape format.
- Encoding tools — Hub index: Base64 & URL, Base64url, Base32, Crockford, LEB128, ASCII85, Z85, Base58, base-36, bencode, Morse, quoted-printable, URI, Puny… when the payload needs a different encoding or escape format.
About this tool
Uses JSON.stringify for canonical escaping including Unicode.
Common use cases
- JSON string escape for quick local checks without uploading data.
- Copy results into tickets, docs, or classroom notes.
Common mistakes to avoid
Unexpected input shape
See the intro and how-to notes for accepted formats.
FAQ
Is processing local?
Yes—this runs entirely in your browser.
Agent prefill?
Use q or qb for the main text field when supported.
More tools
Related utilities you can open in another tab—mostly client-side.
Unicode escape encode
ClientEscape text to \uXXXX JavaScript-style Unicode escapes.
Shell argument escape
ClientWrap text in single quotes for POSIX shell arguments.
Unicode & JS escapes
ClientEncode UTF-8 to \u{hex} escapes or decode \u{…}, \uXXXX, \xNN, and \n \t—client-side.
Encoding tools
ClientHub index: Base64 & URL, Base64url, Base32, Crockford, LEB128, ASCII85, Z85, Base58, base-36, bencode, Morse, quoted-printable, URI, Punycode/IDN, Unicode escapes, data URLs, MIME, hex, HTML entities, JWT, JSON helpers, crypto.