Warning! Please select the valid .java file.
Browse
Load URL
Escape
UnEscape
Clear
Copy Clipboard
Download
Clear

About Java Escape and UnEscape Online Tool

  • Java Escape and Unescape is a free online developer tool to escape special characters in Java. To ensure it's safe to render or unescape Java entities to their original characters.

  • You can either browse a file locally from your device, fetch it from the URL, or enter it manually.

  • This tool is split into two modes are Java Escape and Java Unescape.

  • You can either copy the result to your clipboard using the copy button or download it as a file to your device using the download button.

Escape Java

Escapes the Java special characters by converting them to their corresponding escaped characters as listed below.

  • backspace is converted to \b
  • form feed is converted to \f
  • tab is converted to \t
  • backslash is converted to \\
  • double quote is converted to \"
  • single quote is converted to \'
  • carriage return is converted to \r
  • new line is converted to \n
  • vertical tab is converted to \v
  • AND symbol is converted to \&

UnEscape Java

Unescapes the Java special characters by converting them back to their original ones are listed below.

  • \b is converted to backspace
  • \f is converted to form feed
  • \t is converted to tab
  • \\ is converted to backslash
  • \" is converted to double quote
  • \' is converted to double quote
  • \r is converted to carriage return
  • \n is converted to new line
  • \v is converted to vertical line

Online Java Escape and UnEscape Example:

Below is an example of the Java Escape result.

Java Input:


Escaped Java Output: