Escape Java, .NET, JSON or Javascript String

Escaping Strings so you can put it inside a string literal in C# .NET, Java, JSON or Javascript. For example:

var myStr = "A multiple line\r\ntext with\ttabs\r\nand quote ' and double quote \"\r\nand backslash \\";

You can also unescape the string to see their visual presentation:

A multiple line
text with    tabs
and quote ' and double quote "
and backslash \

Click here for the full list of escaping sequences 🔗


The input string is not a valid string. Make sure your escape are correct.