Does escaping encrypt text?
No. Escaping only represents text safely as JSON syntax; it provides no secrecy or encryption.
Encode raw text as a JSON string literal or decode one back to text.
Encode raw text as one complete JSON string literal, or decode a literal back to its exact text.
The transformed result will appear here.Two raw lines containing a quoted name:
Hello
"JustRandom"Become "Hello\n\"JustRandom\"", including the surrounding quotation marks.
Escape mode uses JSON string serialization. Unescape mode parses JSON and accepts only a string root, rejecting objects, arrays, numbers, booleans, null, and invalid escape sequences. Unicode remains ordinary readable text unless JSON syntax requires an escape.
Your input and results are processed in this browser and are not uploaded by this tool or saved between sessions. Escaping is a syntax transformation, not validation for a surrounding document and not a security control.
No. Escaping only represents text safely as JSON syntax; it provides no secrecy or encryption.
The tool accepts a complete JSON string literal, so surrounding quotation marks are part of the required JSON syntax.
Yes. The literal "" successfully decodes to an empty text result that can still be copied.
Explore another available JustRandom tool that may help with a related task.
Format, beautify, pretty print, and validate JSON in your browser.
Minify valid JSON locally without changing whitespace inside strings.
Compare two JSON values semantically and review stable path-based differences.