ToolBrivo

Press slash to focus search.

Text

Character counter

Compare code points, UTF-16 units, and UTF-8 bytes.

Compare the same text as characters, UTF-16 units, and UTF-8 bytes.

Up to 200,000 characters.

Type or paste text to compare the counts.

Counts

Code points
0
UTF-16 units
0
Without spaces
0
UTF-8 bytes
0
Lines
0
Whitespace
0
How the counts differ

Code points are Unicode characters. UTF-16 code units are what JavaScript uses for string length, so many emoji count as two. UTF-8 bytes are the size of the text if you saved it as UTF-8.

How to use it

  1. Type or paste the text.
  2. Compare code points, UTF-16 units, characters excluding the space character, UTF-8 bytes, lines, and whitespace.
  3. Copy the summary when you need the numbers elsewhere.

Examples

One thumbs-up

The character 👍 is 1 code point, 2 UTF-16 units, and 4 UTF-8 bytes.

Limits

  • A grapheme cluster, such as an emoji with a skin tone or a family sequence, can be several code points. This tool does not combine them into one visible character.
  • “Without spaces” removes only the space character U+0020. Tabs and line breaks remain in that count and are included in the whitespace total.
  • A trailing line break does not add an extra line. A blank line in the middle does.
  • The box accepts 200,000 characters.

Privacy

Files and text you add here stay in this browser unless the page says a server is required. They are not stored in an account.

Questions