Free Online String Escape Tool
The String Escape tool escapes quotes, backslashes, and special characters so text can be safely embedded in JavaScript, JSON, or C# source. It can also reverse the process to unescape a string.
How to Use
Paste your text, choose a target language and mode, and the escaped result appears instantly. Switch to Unescape to turn escape sequences back into real characters.
- Escape for JavaScript, JSON, or C#
- Handles quotes, backslashes, newlines, tabs
- Optional outer quotes and JSON.stringify mode
- Unescape mode reverses the operation
- Runs entirely in your browser