String Escape / Unescape
Escape special characters (newlines, quotes) for use in string literals (Java, JS, C++) or unescape them back to text.
Programming String Literals
When pasting text into source code, you often need to escape special characters.
- Backspace:
\b - Newline:
\n - Tab:
\t - Quote:
\"
Usage
- Escape: Converts raw text to a single-line string literal content.
- Unescape: Converts the escaped string back to original formatted text.
You might also like
Frequently Asked Questions
This tool uses standard escaping rules common to C, C++, Java, JavaScript, and C#. It escapes quotes, backslashes, newlines, tabs, etc.
They are very similar. This tool focuses on general programming string literals, which often aligns with JSON rules for double-quoted strings.