Online: Java Decoder
String decoded = Pattern.compile("\\\\u([0-9a-fA-F]4)") .matcher(input) .replaceAll(mr -> String.valueOf((char) Integer.parseInt(mr.group(1), 16))); Many online tools replicate this logic in JavaScript on the client side. | Type | Encoded Example | Decoded Result | |------|----------------|----------------| | Base64 | U29mdHdhcmU= | Software | | URL | Hello%20World%21 | Hello World! | | Java string escapes | Hello\\nWorld | Hello World |
\u0050\u0072\u006F\u0067\u0072\u0061\u006D The tool would instantly show: java decoder online
import org.apache.commons.text.StringEscapeUtils; String escaped = "\u0048\u0069"; String decoded = StringEscapeUtils.unescapeJava(escaped); System.out.println(decoded); // Hi String decoded = Pattern
\u004A\u0061\u0076\u0061
Or without libraries (Java 13+):