About this tool
Escape text to \uXXXX sequences or unescape them back to characters.
The Unicode Escape Tool converts every non-ASCII character in your text — anything above code point 127 — into \uXXXX escapes with four lowercase hex digits each, and reverses the same escapes back into readable characters. Most characters produce a single escape, but anything outside the Basic Multilingual Plane (emoji and other characters above U+FFFF) produces two, one per UTF-16 surrogate half. Escaping leaves plain ASCII untouched, so "Café" becomes "Caf\u00e9" and nothing else in the string changes. It is the form JavaScript, JSON and Java source files use, so the output pastes straight into code that has to survive an ASCII-only pipeline.
Open Unicode Escape Tool on AltFTool — it loads instantly in your browser.
Paste your code or data sample into the workspace.
Pick the format, conversion, or analysis you need.
Copy the polished result straight back into your project.
Only characters above U+007F are escaped, so code, punctuation and markup around the special characters stay readable.
One switch flips between escaping and unescaping, so you can verify a conversion by running the output back through.
Escapes are emitted as \u plus exactly four hex digits, the syntax accepted by JavaScript, JSON, Java and C# string literals.
Every character with a code unit above 127 — accented letters, curly quotes, CJK, symbols and emoji — while the ASCII range 0 to 127 is passed through unchanged. That means a line of English text with one accented word comes back almost identical, with a single escape where the accent was.
They are escaped as a surrogate pair, so a single emoji produces two \uXXXX escapes — U+1F600 becomes \ud83d\ude00. This is the same representation JavaScript and JSON use internally, and unescaping the pair restores the original character.
No. Those are ASCII characters, so they are left as-is rather than turned into \n, \t or \". If you need a fully escaped string literal, escape those separately after running the Unicode conversion.
\uXXXX is the fixed four-hex-digit form used by JSON and older JavaScript, \u{...} is the ES6 code-point form that can hold more than four digits, and &#x...; is the HTML numeric reference. This tool reads and writes the four-digit \uXXXX form only, which is the one JSON accepts.