MuhammadLab
Browser-only encoding tool

Unicode Escape Encoder / Decoder

Convert any Unicode text to \uXXXX escape sequences used in JavaScript, Java, and JSON, or decode escape sequences back to readable characters. Handles surrogate pairs for characters beyond the Basic Multilingual Plane.

Local processingSurrogate pairs.txt file support

Surrogate pairs

Characters outside the Basic Multilingual Plane (emoji, historic scripts) are represented as two \uXXXX sequences โ€” a high and low surrogate pair.

Workspace

Configure conversion.

Drag and drop a .txt file to load its contents into the input field.

Output

Result and metadata.

Mode

encode

Escape count

0

Output chars

0

By default, ASCII characters (A-Z, 0-9, punctuation) are passed through unchanged. Enable "Also encode ASCII" to escape everything including standard Latin characters.