Text to unescape

Unescaped text

Why unescape text in Java?

Unescaping text in Java is useful when you have escaped strings (like those from source code or JSON) and want to convert them back to their original form with proper special characters.

Examples

Escaped text

\"Hello\nWorld\"

Unescaped text

"Hello
World"

Common escape sequences in Java

  • Double quote: \" becomes "
  • Single quote: \' becomes '
  • Backslash: \\ becomes \
  • Newline: \n becomes a new line
  • Carriage return: \r becomes a carriage return
  • Tab: \t becomes a tab
  • Form feed: \f becomes a form feed

Other tools

Other tools available on this website: