Toolbox / Text statistics Runs in your browser中文
Text

Text statistics

Count Unicode code points, grapheme clusters, words, lines, and UTF-8 bytes.

Ctrl / ⌘ + Enter Run

Ready when you are

01

Add your contentPaste text or try a sample

02

Choose an actionClear options. Predictable results.

03

Take it with youCopy, download and carry on

Less switching. More focus.Functional build · Validation in progress

Using this tool

Distinguish characters, graphemes, UTF-16 units, and UTF-8 bytes when checking text length.

Actions: Process

Example

Count one line in the English UI; the emoji occupies multiple UTF-16 units and bytes.

Example action and settings

Action: Process

Input / action

Hi 😀

Result / expected behavior

{
  "Unicode code points": 4,
  "Grapheme clusters": 4,
  "UTF-16 code units": 5,
  "Words": 1,
  "Lines": 1,
  "UTF-8 bytes": 7,
  "Non-whitespace characters": 3
}

Scope and limitations

  • Word and grapheme counts use Intl.Segmenter, with a simpler fallback when unavailable.

Common mistakes

  • Do not equate visible characters with storage bytes; a trailing newline increases the line count.

Related tools

String obfuscator Numeronym generator

Privacy and browser support

Input is processed in this browser. Do not use real keys or active sensitive credentials as demonstration data. Device features require browser support and your permission.