Tools

Home
Base64 Encode/DecodeString to HexHash GeneratorUTF-8 Encode/DecodeURL Encode/Decode

Count Unicode Characters

Analyze Unicode text — count code points, grapheme clusters, and byte sizes in UTF-8, UTF-16, and UTF-32.

Your data never leaves your browser
INPUT TEXT0 characters
0
Code Points
0
Grapheme Clusters
0
JS String Length
0
UTF-8 Bytes
0
UTF-16 Bytes
0
UTF-32 Bytes
Ready — type or paste text to analyze

Paste "café" or a family emoji and JavaScript might say your string is 10 characters — users see three. This tool breaks down what's actually inside: code points, grapheme clusters, JS string length, and exact byte counts for UTF-8, UTF-16, and UTF-32. And everything runs in your browser. Nothing gets uploaded.

How to Use

Enter any text in the input area — any language, emoji, combining characters, etc.

View counts instantly — code points, grapheme clusters, JS string length, and byte sizes update in real time.

Understand the difference between visual characters (graphemes) and code points, which can differ for emoji sequences and combining marks.

Frequently Asked Questions

What is the difference between code points and grapheme clusters?

A code point is a single Unicode number (like U+0041 for 'A'). A grapheme cluster is what users perceive as a single character — it may consist of multiple code points. For example, a flag emoji like the US flag is two code points (regional indicator symbols) but one grapheme cluster.

Why is JS string length different from code point count?

JavaScript strings use UTF-16 internally. Characters outside the Basic Multilingual Plane (above U+FFFF), like emoji, are stored as surrogate pairs — two 16-bit units. So a single emoji code point has a JS string length of 2.

How are UTF-8 bytes calculated?

ASCII characters (U+0000-U+007F) use 1 byte, characters U+0080-U+07FF use 2 bytes, U+0800-U+FFFF use 3 bytes, and U+10000-U+10FFFF use 4 bytes. The total is the sum across all code points.

How are UTF-16 bytes calculated?

Characters in the BMP (U+0000-U+FFFF) use 2 bytes. Characters above U+FFFF use 4 bytes (a surrogate pair). UTF-16 is used internally by JavaScript, Java, and Windows.

Is my data safe?

Yes. All counting is done in your browser. No data is sent to any server.

Share: