Escape non-ASCII characters to \\uXXXX sequences so source stays ASCII-safe, or decode \\uXXXX, \\u{...} and \\xXX back to text. JS Unicode Escaper is a free online tool from the ToolsRift JavaScript Tools collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.
Loading JS Unicode Escaper…
How to use JS Unicode Escaper
Choose Escape or Unescape, paste your text, then click Convert. Escape turns accented letters, CJK and emoji into \uXXXX sequences; Unescape reverses them.
Frequently asked questions
Why escape to \uXXXX?
ASCII-only source avoids encoding problems in older toolchains, minifiers or systems that mangle UTF-8. Escaping keeps the exact characters while making the file pure ASCII.
Does it handle emoji and astral characters?
Yes. Characters above U+FFFF are emitted as UTF-16 surrogate pairs (two \uXXXX units) on escape, and decoding also understands the \u{...} code-point form.
Are normal letters changed?
No. Printable ASCII (space through ~) is left as-is. Only non-ASCII and control characters are converted, so your code stays readable.
ToolsRift processes your files in your browser. We use cookies only for basic analytics and to support ads that keep every tool free. See our Cookie Policy.