Tool guide
About this tool.
Unicode assigns characters numeric code points; an escape such as \u{2713} writes the check mark ✓ using its hexadecimal code point.
JavaScript supports braced code point escapes and four-digit UTF-16 escapes; characters outside the Basic Multilingual Plane use a surrogate pair in the four-digit form.
- Make invisible whitespace or unfamiliar characters visible in a JavaScript-oriented test fixture.
- Inspect \uXXXX or \u{...} sequences from source code or a log without executing code.
- Compare Unicode code points with UTF-8 bytes using the Hex or Binary converters.
Choose Encode for literal text or Decode for a fragment containing Unicode escape sequences.
For Encode, paste the text; every code point, including spaces and newlines, becomes a lowercase hexadecimal braced escape such as \u{a}.
For Decode, paste JavaScript \u{...} or exactly four-digit \uXXXX sequences, alone or mixed with ordinary text, which is copied unchanged.
Run and copy the result, or use “Use result & reverse” to check the round trip.
- Encode: A ✓ → \u{41}\u{20}\u{2713}
- Decode: \u0041\u{2713} → A✓
- Emoji: \uD83D\uDE0A or \u{1f60a} → 😊
- Decode mixed text: Price \u20ac5 → Price €5
- Braced \u{...} output is JavaScript syntax, not JSON string syntax; use JSON tools when producing a complete JSON document.
- This is a fragment converter, not a JavaScript or JSON string parser; it does not interpret quotes, \n, \xXX or escaped backslashes.
- Only the JavaScript forms \uXXXX and \u{...}, with a lowercase u, are decoded in one pass. Python/C \UXXXXXXXX and other or incomplete escapes remain unchanged; braced values above U+10FFFF are errors.
- Four-digit escapes represent UTF-16 code units; a surrogate pair produces one character, while an isolated surrogate is not a complete Unicode character.