Escape & Encode
Java / .NET Escape
Paste or type anything. Quotes, backslashes and line breaks become Java and C# escapes as you type.
Escape & Encode
Paste or type anything. Quotes, backslashes and line breaks become Java and C# escapes as you type.
Java / .NET Escape writes the inside of a double-quoted string that is valid in Java and in a C# regular string. The languages do not share every escape, so this direction emits only the overlap: backslash, double quote, newline, carriage return, tab, backspace and form feed. Every other character below U+0020 becomes \u00XX.
Wrap in double quotes adds the surrounding quotes so the output is a complete literal. Escape non-ASCII writes each code unit above U+007F as \uXXXX, and an emoji becomes two escapes. With that option off, accented letters and emoji stay as themselves.
One tool covers both directions because that shared subset is the useful part: the escaped text pastes into either language, and Unescape reads Java and C# forms back. Escaping runs in your browser. Swap checks the round trip.
It rewrites text as the inside of a double-quoted Java or C# string. Backslashes and double quotes gain a backslash, line breaks become \n, and other characters below U+0020 become \u00XX. The result is valid in both languages.
Backslash, double quote, newline, carriage return, tab, backspace and form feed, plus \u00XX for the other controls below U+0020. Apostrophes, \a, \v, \0, \x and \U are not emitted, because a Java string does not use all of them. Unescape still accepts those C# forms.
When the literal will be saved in a file that is not UTF-8, or read by a tool that expects ASCII only. The option writes each code unit above U+007F as \uXXXX, so an emoji becomes two escapes. Java and C# read that pair back as the same character.
It adds one double quote on each side after escaping, so the output is a complete literal. The quotes around the result are not themselves escaped. Leave it off to drop the text into a string you already opened.
No. Escaping 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.
Decode a Java or C# string literal as you type, including Unicode and C# hex escapes. Runs in your browser; your text is never uploaded.
Turn text into a valid JSON string literal, or decode one back to plain text.
Percent-encode text for a URL, or decode a percent-encoded string.
Encode text as Base64, or decode Base64 back to text.
Escape text for HTML, or decode entities back to characters.
Iternal · AI Blueprint Builder
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)↑↓ to move · ↵ to open · esc to close
aiformatting.app cleans up the text. The AI Blueprint Builder ranks the AI initiatives your team is weighing, scoring each use case across value, feasibility, cost, governance, risk, adoption and readiness before you commit budget.
Free to start · about 60 minutes · iternal.ai
Every tool here stays free, with no account to create. Leave a work email and the team behind aiformatting.app will send the occasional note on practical AI tooling.