📋

JSON String Escape

Escape or unescape strings for JSON (\n \" \uXXXX).

Original string
JSON Escape Result

What is JSON Escape?

JSON escape handles special characters in JSON strings, ensuring they can be safely included in JSON data. This tool escapes and unescapes JSON string content.

Escaped Characters

  • Backslash (\) → \\
  • Double quote (") → \"
  • Newline → \n
  • Tab → \t
  • Carriage return → \r

Use Cases

  • Embedding strings with special characters in JSON
  • API request/response handling
  • Configuration file editing