Java / .Net String encoding - Online tool

Enter/paste text to replace special characters with correct escape codes:


Result text with correct escape codes:

About the Java/.Net String encoding

The String encoding tool converts all special characters to the correct escape codes, for use in .Net and Java.

The result is a single line, with standard ASCII characters, that can be pasted directly into your source code.