HomeJSON String Escape/Unescape

JSON String Escape/Unescape

Convert strings to valid JSON format or restore, handling escape and unescape of double quotes and control characters



Documentation

About JSON Escape / Unescape

This tool handles escaped JSON string content for nested logs, embedded configs, and cross-system text transport.

Key Features

  • JSON Escape: Converts plain text into JSON-safe escaped string form.
  • JSON Unescape: Restores escaped JSON content back to readable text.
  • Quick Copy: Copy result in one click.
  • Sample Input: Built-in sample for quick testing.

Common Escape Sequences

Character JSON Form
quote " \\"
backslash \\ \\\\
newline \\n
tab \\t
carriage return \\r

Steps

  1. Paste your input text.
  2. Click escape or unescape.
  3. Review output and copy it to your target system.

FAQ

Why does JSON parsing still fail?

The JSON structure itself may be invalid (commas/brackets), not only string escaping.

Can it handle Unicode escapes?

Yes. Common \\uXXXX sequences can be restored during unescape.