← Hashito System Home ę—„ęœ¬čŖž Tools Blog
Input
Results
CharCode pointDecimalUTF-8 (hex)UTF-16

About code points

What is a code point?

A code point is the unique number Unicode assigns to each character. By convention it is written as a hexadecimal number following U+; for example A is U+0041 and 恂 is U+3042. Encoding schemes such as UTF-8 and UTF-16 are the rules that convert this number into an actual byte sequence.

How are UTF-8 bytes determined?

UTF-8 uses 1 to 4 bytes depending on the size of the code point. The ASCII range (U+0000 to U+007F) is 1 byte, most Japanese characters are 3 bytes, and emoji are 4 bytes. This tool shows the actual UTF-8 encoded bytes of each character in hexadecimal.

What does \uXXXX in the UTF-16 column mean?

It is the UTF-16 representation used internally by JavaScript and similar languages. Characters up to U+FFFF are a single unit, while characters above that (many emoji, for example) become a surrogate pair of a high and a low unit. It corresponds to the \uXXXX notation used when escaping characters in JSON strings or source code.

Frequently asked questions (FAQ)

What is the difference between a code point and a UTF-8 byte?

A code point is the number Unicode assigns to a character itself (for example, 恂 is U+3042), while UTF-8 bytes are the actual byte sequence produced when that number is encoded for storage or transmission (恂 becomes the three bytes E3 81 82). For characters in the ASCII range the two match, but Japanese and similar characters take 2 to 4 bytes per character.

Why is the emoji U+1F600 split into two units in UTF-16?

JavaScript strings are managed in UTF-16, and characters above U+FFFF are represented by two 16-bit units called a surrogate pair. šŸ˜€ (U+1F600) becomes the pair of a high unit D83D and a low unit DE00. The code point itself is a single value, but because UTF-16 represents it with two units it is displayed this way.

Is the text I enter sent to a server?

No. All analysis is completed entirely in JavaScript within your own browser. The text you enter is never sent to or stored on a server.