Counters & Analysis

Character Counter

Character Counter shows three different lengths for the same text: graphemes, code points, and UTF-16 units.

Try character counter

Paste or type text below. The result updates in your browser.

Example: character counter

Input
AπŸ˜€
Illustrative result
2 characters

How to use this tool

  1. Paste the text to inspect.
  2. Run Character Counter and read all three reported measures.
  3. 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.