Online Java and .NET String escaping
Used for Java, .NET and more.
Paste your text into the box below and click "encode"
Java and .NET String encoded result
This tool replaces all characters known to cause problems, with correct escape characters.
The escaped result is compatible with Strings in Java, Java resource files, .NET and more.
Escape characters used for String escaping by this tool:
| Escape sequence | Description |
| \t | Tab |
| \b | Backspace |
| \n | Newline |
| \r | Carriage return |
| \f | Formfeed |
| \' | Single quote |
| \" | Double quote |
| \\ | Backslash |
| \uXXXX | Unicode character, used for characters above 127 |
