Java & .NET String Escape

This tool can be used to either escape or unescape characters that have special meaning when working with Java or .NET Strings. More

Input
Output

How it works?

Java & .NET String Escape Online: This tool can be used to either escape or unescape characters that have special meaning when working with Java or .NET Strings. See the examples of usage below.

Examples:

Unescaped code
This "is an example" of how this tool escapes special characters for Java and .NET code.
Escaped code
This \"is an example\" of how this tool escapes special characters for Java and .NET code.

More about Java and .NET escape sequences:

The following table highlights the escape sequences used for Java and .NET languages.
Escape Sequence Description
\t Insert a tab in the text at this point.
\b Insert a backspace in the text at this point.
\n Insert a newline in the text at this point.
\r Insert a carriage return in the text at this point.
\f Insert a formfeed in the text at this point.
\' Insert a single quote character in the text at this point.
\" Insert a double quote character in the text at this point.
\\ Insert a backslash character in the text at this point.

Additional Resources:

Looking for something else?

In case you are looking for something else than this functionality, please let us know by contacting us. The most common requests will be made available (for free) once possible.