Character Counter
Character Counter shows three different lengths for the same text: graphemes, code points, and UTF-16 units.
Example: character counter
Aπ
2 characters
How to use this tool
- Paste the text to inspect.
- Run Character Counter and read all three reported measures.
- Compare the relevant measure with the destinationβs documented limit.
How the result is made
The primary count uses grapheme clusters, which often match what a reader sees as characters. The tool also reports JavaScript code points and UTF-16 units. βAπβ has two displayed graphemes but the emoji occupies two UTF-16 units, so the reported measures can differ.
When to use it
Use it to understand a text limit, inspect emoji-heavy copy, or compare how a web form and programming API might count a string. Word Counter uses word-like runs; Character Frequency Counter counts occurrences of each grapheme rather than reporting one total.
Details to check
Grapheme segmentation depends on browser support for Intl.Segmenter; the fallback uses code points and may count some joined sequences differently. A service with a byte limit uses yet another measure. Check the exact counting rule imposed by the destination instead of assuming one number is universal.
Questions people ask
Why are UTF-16 units higher?
Some characters use a surrogate pair of two units.
Are spaces counted?
Yes. They are part of the input string.
Does the tool count bytes?
No. UTF-8 byte length is a different measure.