What .NET Unescape does
.NET Unescape decodes the escape sequences of a regular C# string literal: \' \" \\, \0 \a \b \f \n \r \t \v, \x with one to four hex digits, \uXXXX and \UXXXXXXXX.
Any other escape is a compile error in C# (CS1009), so the tool reports it with its line and column.
.NET Unescape examples
The built-in sample
Input
say \"hello\" & <b>bye</b>Output
say "hello" & <b>bye</b>This is the input that the Load sample button fills in.
All escape forms
Input
\x41\x042 \u00E9 \U0001F600 \a\t\"ok\"Output
AB é 😀 ␇ "ok"\x reads up to four hex digits: \x042 is B. \U takes eight digits and can reach characters above U+FFFF.
An escape C# does not allow
Input
Temp\FilesResult
\F is not a C# escape. C# allows \' \" \\ \0 \a \b \f \n \r \t \v, \x, \u and \U (line 1, column 5)
\F is not a C# escape. In C#, write the path as "Temp\\Files" or @"Temp\Files".
Each output was produced by running this tool on the input above it. Invisible control characters are shown as symbols, for example ␁ for U+0001 and ␀ for U+0000.
How it works
Each backslash sequence is replaced as shown below.
| Escaped form | Character |
|---|---|
\' \" \\ | ' " \ |
\0 | U+0000 |
\a \b \f | bell, backspace, form feed |
\n \r \t \v | line break, carriage return, tab, vertical tab |
\x41 … \x0041 | character code, 1 to 4 hex digits |
\uXXXX | UTF-16 code unit |
\UXXXXXXXX | code point up to 10FFFF |
Details and limits
- Paste the inside of a regular string, not a verbatim (@"…") or raw (""" … """) string; those contain no escapes.
Questions
Is my data uploaded when I use .NET Unescape?
No. The tool runs in your browser, so what you paste or open is processed on your own device and is not sent to a server.
Are there any limits I should know about?
Paste the inside of a regular string, not a verbatim (@"…") or raw (""" … """) string; those contain no escapes.
Is there a size limit?
There is no fixed size limit. Everything happens on your device, so very large inputs depend on its memory and can take longer on a phone than on a computer.
Does it work on phones, and is it free?
Yes. It works in any current browser on Android phones, iPhones, tablets and computers. It is free and needs no account or sign-up.