The Free Online C# / .Net String Escape/Unescape tool replaced the reserved characters in C# / .Net string with corresponding escaped characters to prevent the compiling. You can also convert them back to their original ones.
Literal, more specifically, means how you hard-code the strings in C# programs. It consists of two forms.
- Regular string literals
- Verbatim string literals
Regular string literals consist of the characters enclosed in the double-quotes. The various characters (\, a carriage return, and line feed) and many others need to be "escaped" to be represented in the string.
Verbatim string literals consist of @ character, followed by the double quote, characters, and closing double-quote character. It allows pretty much anything within them.
For this, do the following steps.
- Open the C# / .Net string Escape/Unescape Online tool.
- You can copy-paste the C# / .Net string.
- Click on the "Escape" button.
- The tool replaces the reserved characters in C# / .Net with its corresponding escaped characters.
- The tool will display the result code in the "Result" section.
- Please copy the code and paste it into the desired location.
- You can unescape the C# / .Net escaped string by clicking on the "Un Escape" button.
Do we keep a copy of your source code?
Protecting user trust is our top priority. We do not keep a copy of the source code that the user pastes for the C# / .Net Escape/Unescape process.
Note: We do not keep a copy of the resulted code. Therefore, please copy the resulted code and paste it to the desired location for future use if you are happy and satisfied with the C# Escape/Unescape.