Loading…

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.

More JavaScript Tools

JS Regex Escaper
Escape a literal string so its special characters are matched literally inside a RegExp, with optional forward-slash escaping
Template Literal → Concat
Convert ES6 template literals with ${expr} interpolation into equivalent string concatenation, string and regex aware
Ternary to If/Else
Expand ternary assignments, declarations and returns into readable if/else blocks, safely skipping ?? and ?. operators
List to JS Array
Turn a list of lines, comma or space separated values into a JavaScript array literal with quoting, trimming and de-duplication
JS Variable Name Validator
Check whether a name is a valid JavaScript identifier and explain each problem — digits, symbols, spaces or reserved keywords
JS Quote Normalizer
Convert JavaScript string quotes between single and double, string, comment and regex aware, re-escaping quotes as needed
JSON Key Sorter
Recursively sort the keys of a JSON object alphabetically (ascending or descending) with configurable indentation
var to let / const
Replace the var keyword with let or const across your code, string, comment and regex aware so text like \
JavaScript Formatter
Beautify and format JavaScript code with proper indentation and structure for better readability
JavaScript Minifier
Minify JavaScript by removing whitespace, comments, and shortening variable names to reduce file size
JavaScript Validator
Validate JavaScript syntax and find errors with detailed line numbers and error messages
JSON to JS Object
Convert JSON data to JavaScript object literal syntax with proper formatting and structure

← View all JavaScript ToolsBrowse all 1,100+ tools →