Encoding
Java Escape
Escape a plain string into a Java string literal — non-ASCII characters escaped as \uXXXX.
Output will appear here…Why use our Java Escape?
100% private
Everything runs in your browser. Your data never leaves your device — safe for production payloads.
Instant results
No round trips, no rate limits, no login. Format, validate and inspect megabytes of JSON in milliseconds.
Standards-first
Follows RFC 8259 / ECMA-404 exactly. Reports errors with precise line and column diagnostics.
Related developer tools
Java Unescape
Unescape a Java string literal back into plain text — decodes \uXXXX and \n \t etc.
OpenJavaScript Escape
Escape a plain string into a JavaScript string literal — handles quotes, backslashes and control characters.
OpenJSON Escape
Escape text into a valid JSON string literal — newlines, quotes and unicode handled automatically.
OpenCSV Escape
Escape a value for safe inclusion in a CSV cell — quotes fields containing commas, quotes or newlines.
OpenHTML Escape
Escape HTML special characters (< > & " ') to entities. Safe injection into HTML markup.
OpenJavaScript Unescape
Unescape a JavaScript string literal back into plain text. Handles \n \t \uXXXX.
Open