Count text

Count graphemes, code points, words, lines and UTF-8 bytes.

Processed only in this browser
Input and settings
Processing options

Input and results are processed in this browser, without saving them to a server, URL or persistent browser storage. Clipboard content and downloaded files may remain on your device.

How to use this tool

  1. Enter text or load the example.
  2. Compare graphemes, code points, whitespace-free characters, words, lines and bytes.
  3. Check the required metric and copy or save the JSON report.

Why emoji and combining characters count differently

Input and settings
가é👨‍👩‍👧‍👦
Result
3 graphemes · 10 code points

A joined family emoji contains several code points.

Processing rules and reading the result

Graphemes and words use Intl.Segmenter for the current language. The whitespace-free count removes Unicode whitespace from the code-point count. Empty input has zero lines; a trailing line break adds an empty line.

Limits and checks before use

Supports up to 500,000 UTF-16 code units. Live updates stop above 50,000; use the button for longer input. A destination may count UTF-16 units or bytes differently, so follow its own counter.

Common questions

Why do Korean and English have different byte counts?

UTF-8 usually uses one byte for ASCII and three for a precomposed Hangul syllable. Emoji and combining sequences have different lengths.

Standards and references

Read alongside this tool