Skip to content
OddsockLocal
Local
Source text

Formatting

5 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Paste one character or a short string.
  2. Read a row per character. The code point is the U+ name.
  3. Compare UTF-8 and UTF-16 when a size check disagrees with the number of letters.
  4. Use the category when a character looks blank and you need to know whether it is a separator or a mark.

What is Unicode inspector?

The inspector does not encode a whole string into one line. It describes each character on its own: the character, the U+ code point, the UTF-8 bytes, the UTF-16 units, and a general category such as Letter, Number, Punctuation, Symbol, Separator or Other. There is no Direction control, because the page only reads.

Read more

é comes back as code point U+00E9, UTF-8 bytes c3 a9, UTF-16 unit 00e9, category Letter. That single row is the argument people have when a string’s length disagrees with its size on disk. The character is one letter, the UTF-8 storage is two bytes, and the UTF-16 storage is one unit.

The first character of Odd socks in the dryer. is the letter O, U+004F, UTF-8 4f, UTF-16 004f. A space is a Separator. A period is Punctuation. An emoji’s UTF-16 field can hold two units even though the code point field holds one U+ value. Read the row, not the string length.

Use cases

  • A form rejects a name and you need to see whether the culprit is a non-breaking space, category Separator, rather than a normal U+0020.
  • An engineer explains why a tweet counter and a database column disagree: one counts characters, the other stores UTF-8 bytes.
  • A localization tester checks that a combining mark shows up as category Mark instead of being glued invisibly to the letter.
  • Someone teaching UTF-8 uses é as the smallest interesting case: one letter, bytes c3 a9.

One accented letter, pulled apart

é

character é, code point U+00E9, UTF-8 c3 a9, UTF-16 00e9, category Letter.

Why use Oddsock

The four columns answer four different arguments. Length, bytes, UTF-16 storage and category are not interchangeable.

Related tools

Using this tool

The page only describes characters. Converting to U+ tokens, \u escapes or hex bytes is what the neighboring tools do.