Unicode Escape/Unescape
Convert Unicode characters to \u escape sequences and vice versa. Handle Unicode escaping for JavaScript, JSON, and other programming languages
Examples
Unicode Escape FAQ and Usage Guide
What is Unicode Escape?
Unicode escaping converts Unicode characters to \uXXXX escape sequences.
For example, "μλ
" becomes \uc548\ub155.
This is a standard format used in JavaScript, JSON, Java, and many other programming languages.
When should I use it?
Common use cases:
- Safely representing non-ASCII characters in JavaScript/JSON files
- Using Unicode in systems that don't support certain encodings
- Including multilingual strings in source code
- Safely including Unicode in URLs or filenames
How do I read \uXXXX format?
The 4 hexadecimal digits after \u represent the Unicode code point.
For example:
\u0041= A (Latin capital letter A)\uc548= μ (Korean syllable An)\u4e2d= δΈ (Chinese character Zhong)\u03b1= Ξ± (Greek letter alpha)
Are emojis converted?
Most emojis are 4-byte characters, so they're represented as two \uXXXX sequences (surrogate pair).
For example, π becomes \ud83d\ude00. This tool handles emojis correctly.
How are ASCII characters handled?
ASCII characters (codes 0-127) are kept as-is without conversion.
For example, "Hello" remains "Hello", and only non-ASCII characters are converted to \uXXXX format.
Is my data safe?
Yes! All processing happens only in your browser. Your text is never sent to any server and is not stored anywhere.