%3C/text%3E%3C/svg%3E">
💻
💻 Tech & IT

Unicode Code Point & UTF-8/UTF-16 Inspector

Results update as you type.

Your numbers

Understanding the Unicode code point inspector — concept and principle

Every character is stored as a number called a Unicode code point, written U+ followed by at least four hex digits. An encoding then turns that number into bytes, usually UTF-8 (files, web, APIs) or UTF-16 (JavaScript, Java, Windows). This inspector shows, per character, the code point, the UTF-8 bytes and the UTF-16 units, which helps when debugging garbled text or checking what a database will store.

Code points and their UTF-8 and UTF-16 encodings한 U+D55C is ED 95 9C and D55C; the smiley U+1F600 is F0 9F 98 80 and the pair D83D DE00; A is 41 and 0041.One character, different byte counts한U+D55CUTF-8UTF-16ED959CD55CU+1F600UTF-8UTF-16F09F9880D83DDE00AU+0041UTF-8UTF-164100413 chars · 4 UTF-16 units · 8 bytes
The emoji lies outside the BMP, so it needs 4 UTF-8 bytes and a UTF-16 surrogate pair.

How it is calculated

The principle

Unicode separates identity from storage: the code point says which character it is, the encoding decides how many bytes to spend. UTF-8 keeps ASCII as one byte, and because continuation bytes always begin with 10, a reader can resynchronise anywhere in a stream. UTF-16 reaches the full 1,114,112 code points by using the reserved range U+D800–U+DFFF as surrogate pairs.

Worked example

  1. Input: 한😀A, three characters.
  2. 한 = U+D55C. Its bits 1101 010101 011100 fill the 3-byte pattern as ED 95 9C; in UTF-16 it is one unit, D55C.
  3. 😀 = U+1F600, outside the BMP. UTF-8: F0 9F 98 80. UTF-16: 0x1F600 − 0x10000 = 0xF600, top 10 bits 0x3D, bottom 10 bits 0x200, giving D83D DE00.
  4. A = U+0041: UTF-8 41, UTF-16 0041.
  5. Totals: 3 code points, 1 + 2 + 1 = 4 UTF-16 units, 3 + 4 + 1 = 8 bytes, shown as 3 / 4 / 8.

How to read the result

A UTF-16 length larger than the character count means the text contains characters beyond the BMP, usually emoji. Korean syllables (U+AC00–U+D7A3) always take 3 bytes in UTF-8 and one UTF-16 unit.

Common mistakes

Keep in mind: "Characters" here means code points. What a reader sees as one character (a flag, a decomposed Hangul syllable) can be several code points, so use a grapheme-aware library when limits are about visible characters.

Frequently asked questions

Why does MySQL reject emoji in a utf8 column?

Legacy utf8 (utf8mb3) stores at most 3 bytes per character, so 4-byte characters do not fit. Use utf8mb4.

Is UTF-16 always 2 bytes per character?

No. Characters above U+FFFF take 4 bytes as a surrogate pair.

Which encoding should I use for new files?

UTF-8 is the default for the web and most tools; it is compact for ASCII and has no byte-order issue.

Sources: The Unicode Consortium, The Unicode Standard, Chapters 2 and 3 · IETF RFC 3629, UTF-8, a transformation format of ISO 10646 · IETF RFC 2781, UTF-16, an encoding of ISO 10646

Checked 8 Nov 2026. Standard formulas and RFC/IEEE definitions, computed locally in your browser — nothing you type is sent anywhere.

💻 All tech & IT tools →🌍 Calculators by country →