What is a Unicode escape?
Unicode gives every character a number, called a code point. An escape sequence writes that number in plain ASCII so it can sit safely inside source code, JSON, HTML or CSS. The letter é is code point U+00E9, written \u00E9 in JavaScript and JSON.
Different languages use different styles. JavaScript uses \uXXXX, or \u{1F600} for characters above U+FFFF. HTML uses 😀, CSS uses \1f600 and Python uses \U0001F600. In the JavaScript style, an emoji becomes two \u values (a surrogate pair), exactly as JSON.stringify writes it. This tool converts in both directions.
How to use the Unicode Escape Converter
- Paste your text or your escape sequences.
- Choose the direction.
- Pick the style you need, such as JavaScript, ES6, U+ code points, HTML or CSS.
- Copy the result.