Zickty



icon

Java Unescape Text Online Tool

A tool for convert escaped text in Java to unescaped text.






Overview

Converts escaped text in Java to unescaped text. Java code stores string literals certain characters as escape characters. This tool will convert the escaped text back into its original format used when the Java code is compiled and ran.

How to Use

1. Enter your escaped text into the input box.

2. Press the "Unescape" button and the text will be converted into unescaped text in the output box.

3. Pressing the "Escape" button will escape the text in the output box back to the input box.

About Java escape sequences

Java uses escape sequences to encode special characters in String literals. Some of these characters are used to define the structure of Java code so they cannot be used directly in String literals because they would be interpreted as structural marks. Other characters are formatting characters that might look strangely when directly included as String literals.

Escape Sequences
Escape Sequence Description
\t Insert a tab in the text at this point.
\b Insert a backspace in the text at this point.
\n Insert a newline in the text at this point.
\r Insert a carriage return in the text at this point.
\f Insert a form feed in the text at this point.
\' Insert a single quote character in the text at this point.
\" Insert a double quote character in the text at this point.
\\ Insert a backslash character in the text at this point.

Java also allows has escape sequences for Unicode characters. The escape sequence is "\u" followed by the four hex digit UTF-16 code for the character. Unicode escape characters are useful if the text encoding only allows for ASCII encoding and Unicode characters are needed in the String literal.

Unicode Escape Sequence Examples
Escape Sequence Result
\u00c6 Æ
\u2f47
\ud83d\ude00 😀