Java and .NET String Escape Tool

In Java and .NET, it is often complicated to write special characters in Strings. This tools makes it easy, by escaping all the troublesome characters automatically.

Paste your text in below and get your escaped text.

Enter/paste text to escape text to Java/.NET String:


Escaped String result: