JSON string escape

Client

Escape a string for safe JSON quoting—quotes, slashes, controls.

"Line1\n\"quoted\""

Nearby workflows on Toolcore

  • Unicode escape encodeEscape text to \uXXXX JavaScript-style Unicode escapes. when the payload needs a different encoding or escape format.
  • Shell argument escapeWrap text in single quotes for POSIX shell arguments. when the payload needs a different encoding or escape format.
  • Unicode & JS escapesEncode 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 toolsHub 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.

Related utilities you can open in another tab—mostly client-side.