OctalOne

100% Private & Offline-Ready

Your files are processed entirely on your device. Nothing is uploaded — works offline too!

Learn More →

JSON Escape / Unescape

Convert raw text into a valid JSON string line, or revert an escaped JSON string back to normal text.

Input JSON String
Escaped Output
Input JSON String

Valid JSON Strings

JSON strings cannot contain unescaped double quotes or backslashes. Newlines must also be escaped as \n.

  • Escape: Turns Hello "World" into Hello \"World\".
  • Unescape: Reverses the process, making the text readable again.

How to Use

  • Paste your text on the left.
  • Select Escape to prepare it for a JSON file.
  • Select Unescape if you pasted a string from a JSON file.

You might also like

Frequently Asked Questions

When putting text inside a JSON string (e.g. "text"), characters like quotes (") and backslashes (\) must be escaped (turned into \" and \\) to avoid breaking the JSON syntax.

It automatically adds or removes the necessary backslashes so your string is valid within a JSON file.