Conversor Unicode
Escape e desescape sequências Unicode e inspecione o ponto de código, os bytes UTF-8 e as unidades UTF-16 de cada caractere.
Como usar
Enter text, then Escape to convert it to Unicode escape sequences or Unescape to convert sequences back to characters. Styles are \uXXXX, \u{...} and 0xXXXX. Below the input, a table breaks the current input down character by character: code point, decimal value, UTF-8 bytes, UTF-16 code units and whether the character needs a surrogate pair (first 200 characters).
Observações
Everything runs in your browser. Escaping leaves printable ASCII characters unchanged. Unescaping understands \uXXXX, \u{...} and \xXX sequences. Characters outside the Basic Multilingual Plane, such as most emoji, are treated as single characters and written in the \u{...} style.
Perguntas frequentes
What is the code point of "あ"?
U+3042 (12354 in decimal), encoded in UTF-8 as the three bytes E3 81 82.
What is a surrogate pair?
Two UTF-16 code units used together to represent one character at U+10000 or above. Such characters have a length of 2 in JavaScript strings.