Inspect character

List each Unicode code point with its hexadecimal label, UTF-8 bytes, index, and a deliberately small display classification.

freeworks offlinenothing uploaded
ToolCharacter Inspector
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

JavaScript string iteration visits code points, TextEncoder produces RFC 3629 UTF-8 bytes, and a separate length field counts UTF-16 units. Hidden controls, U+FEFF, and U+200B print as U+ labels, while the type column covers selected ranges rather than the full Unicode property database.

  • Every code point receives a row because invisible formatting characters are often the object of the investigation.
  • The table index advances by code point, not by UTF-16 offset or grapheme cluster.

Worked example

Inspect Characters
Inspect each character in a short string with code points and UTF-8 bytes
Input
											ABC
										
Output
												=== Text Inspector ===
String length (UTF-16 units): 3
Code points: 3
UTF-8 byte length: 3

Idx | Char | Code Point       | UTF-8 Bytes      | Type
----|------|------------------|------------------|----
  0 | A    | U+0041           | 41               | Uppercase Letter
  1 | B    | U+0042           | 42               | Uppercase Letter
  2 | C    | U+0043           | 43               | Uppercase Letter
											

When to use this

Developers find zero-width spaces in identifiers, encoding lessons compare UTF-16 with UTF-8, and cleaning investigations locate C0 or C1 controls.

Edge cases

  • 😀 occupies one row and four UTF-8 bytes while increasing the separate UTF-16 length by two.
  • e followed by U+0301 occupies two rows even when a font renders the pair as one accented grapheme.
  • A family emoji is decomposed into emoji and U+200D rows instead of appearing as one user-perceived character.

References