Encoding tools
String Escape / Unescape
Escape text as one JSON (JavaScript Object Notation) string, or read it back.
Runs locallyRuns locally in your browser
Guide
Escape characters inside a string or undo that escaping. Use this to distinguish a line break or quotation mark in the text from the characters used to represent it in a string literal.
- Add your input
Type or paste into Input, choose an example or use Open file.
- Choose the options
Use the controls above the fields. The question-mark buttons explain unfamiliar choices.
- Read and keep the result
Output updates automatically. Copy output or Download keeps the result.
On mobile, choose Output to read the result. Clear removes both fields.
Direction
- Escape: produce one JSON (JavaScript Object Notation) string, including its surrounding double quotes. Quotes and line breaks inside the text are escaped.
- Unescape: read one quoted JSON (JavaScript Object Notation) string back into text. Objects, arrays and other escape formats are not accepted; no code is run.
Example
- Escape turns Hello into "Hello". Unescape removes one valid layer of string quoting.
Shortcuts
- Ctrl / Cmd + Enter — Run selected action
- Ctrl / Cmd + Shift + C — Copy output
- Ctrl / Cmd + S — Download output
- ? — Show shortcuts outside text fields
Shortcuts work while focus is in the workspace. Copy and download need valid output.
Common questions
- What does this tool support?
- JSON (JavaScript Object Notation) string notation includes double quotes. Escape adds one layer; Unescape removes one valid layer. This does not run code or support other escape languages.
- Is my content saved or uploaded?
- No. Only your non-sensitive settings are remembered. Input, output, image data and filenames stay out of storage and statistics.
- What happens with a large result?
- The displayed text is a limited preview above 200,000 characters. Download retains the complete result; copying is limited to 2 MB. A protective limit produces an error, never a silently shortened download.
Was this tool helpful?
Only your rating and optional feedback are sent. Your tool input and output are never included.