C# String Escape
Escape text for C# regular ("…") or verbatim (@"…") string literals, including \0, \a, \v and \uXXXX.
Runs in your browserText → C# string
Loading tool…
Example
C:\Users\Ada "x"
C:\\Users\\Ada\n\"x\"
How to use the C# String Escape
- Paste or type your Text into the input area, or open a file from your device.
- Adjust the options above the editor if the tool offers any.
- Review the C# string result, then copy it or download it as a file.
Privacy and limitations
- Your data is processed on your device and is not uploaded to any server.
Related converters
Java String EscapeEscape text for a Java string literal: backslashes, quotes, \n, \t and control characters, optionally as \uXXXX ASCII.C# String UnescapeDecode C# string escapes (\n, \x41, \u00e9, \U0001F600) or verbatim @"…" strings back to plain text.Java String UnescapeDecode Java string escapes (\n, \t, \s, \uXXXX, octal) into plain text, flagging escapes Java would reject.Regex EscapeEscape regular-expression metacharacters (. * + ? ^ $ ( ) [ ] { } | \ /) so text matches literally.SQL String UnescapeTurn an SQL string literal back into plain text: strip quotes and collapse '' (or MySQL backslash escapes).SQL String EscapeEscape text for an SQL string literal by doubling single quotes, or with MySQL backslash escapes.CSV UnescapeRemove CSV quoting from a field: strip surrounding quotes and turn doubled quotes ("") back into single quotes.CSV EscapeQuote a value for CSV per RFC 4180: wrap fields containing delimiters, quotes or line breaks and double inner quotes.