JSON Escape / Unescape

Escape special characters for JSON strings, or unescape them back to readable text.

Input Text
Escaped Output

Escaped or unescaped text will appear here

Free Developer Tool

JSON Escape / Unescape Tool

Escape special characters in text so it can be safely embedded in a JSON string, or unescape an escaped JSON string back to human-readable text. Handles double quotes, backslashes, newlines, carriage returns, tabs, form feeds, and optionally non-ASCII characters as \uXXXX sequences.

Characters escaped

  • " → \" (double quote)
  • \ → \\ (backslash)
  • newline → \n
  • carriage return → \r
  • tab → \t
  • form feed → \f
  • backspace → \b
  • non-ASCII → \uXXXX (optional)

Common use cases

  • Embedding user-supplied text in JSON API payloads.
  • Storing multiline strings inside JSON configuration files.
  • Unescaping JSON string values for readability.
  • Debugging escaped strings copied from logs or API responses.

Frequently Asked Questions

What is JSON string escaping?

In JSON, certain characters must be escaped with a backslash when they appear inside a string value. For example, a literal double quote must be written as \" so the JSON parser does not treat it as the end of the string.

Is my data sent to a server?

No. All escaping and unescaping runs entirely in your browser. Your data never leaves your device.