Skip to content
Created by Iternal Technologies, the AI Strategy ExpertsBy Iternal (opens in a new tab)

Escape & Encode

Java / .NET Unescape

Java or C# string

Paste a Java or C# string, with or without its quotes. Shared escapes and C# hex escapes are decoded as you type.

Text

About Java / .NET Unescape

Java / .NET Unescape decodes a Java or C# regular string back to text. It accepts the shared escapes, a \u escape of four hex digits, and the C# forms \x (one to four hex digits), \U (eight hex digits, at most U+10FFFF), \a, \v and \0.

Paste the literal with or without its surrounding double quotes. When the trimmed input starts and ends with a double quote and is one literal, the outer quotes are removed. A bad escape is reported at the backslash, and an emoji written as a surrogate pair is joined back into one character.

Decoding runs in your browser, so the literal never leaves your device. Octal escapes such as Java \101 are not part of this set and are reported as unknown. Swap sends the decoded text back to Escape.

Frequently asked questions

What does unescaping a Java or C# string do?

It reverses string escapes. \n becomes a line break, \" becomes a double quote, \\ becomes one backslash, and \uXXXX becomes the character it names. Use it to read a literal copied from Java or C# source.

Do I need to paste the surrounding quotes?

No. If the input, ignoring space at the ends, starts and ends with a double quote and those quotes enclose one literal, they are removed before decoding. Otherwise the text is decoded as the inside of the string, and a raw double quote stays a double quote.

Which extra C# escapes are accepted?

Besides the shared Java set, Unescape accepts \a (bell), \v (vertical tab), \0 (null), \x with one to four hex digits, and \U with eight hex digits when the code point is at most U+10FFFF. A \' apostrophe escape is decoded as well. An emoji written with \U comes back as one character.

How is an emoji written as two \u escapes decoded?

Characters above U+FFFF, including most emoji, are two UTF-16 units. Escape with Escape non-ASCII writes them as a pair such as \ud83c\udf89. Unescape reads each unit and the pair is one character again. Hex digits may be upper or lower case.

What happens if the input contains an invalid escape?

The output is replaced by a short problem note that names the issue, such as an unknown escape or a \u escape with fewer than four hex digits, and the Jump button selects that backslash. The tool does not guess a character.

Are C# verbatim strings and Java text blocks supported?

No. Verbatim strings (an @ before the quote) and Java text blocks keep most backslashes as ordinary characters. Paste a regular double-quoted literal, or the inside of one.

Is the text I paste uploaded anywhere?

No. Decoding runs in your browser and the text you paste is never uploaded, logged or stored. Google Analytics records page views and feature use, never content.

Iternal · AI Blueprint Builder

Plan the AI initiative, not just the output

The AI Blueprint Builder scores each use case across value, feasibility, cost, governance, risk, adoption and readiness before you commit budget. Free to start, about 60 minutes.

Open the AI Blueprint Builder (opens in a new tab)