Free online tools · No sign-up

Text statistics

Count Unicode code points with or without whitespace, Han characters, words and lines. Words use the browser’s Chinese segmentation and may vary by browser.

Local processing · Inputs are not uploaded

Up to 1 MiB. Segmented word counts may differ from office software counts.

Enter content, then choose an action.

How to use

  1. Paste nonempty text and click Count. Copy or download the results.
  2. Characters count Unicode code points. The count including whitespace includes spaces, punctuation and line breaks; the other count removes spaces, tabs and line breaks. Combined emoji may use several code points.
  3. Han characters are counted separately. Words use Intl.Segmenter with Chinese rules, rather than splitting on spaces. A final line break adds an empty line.

Example

café niño

This example uses precomposed é and ñ: 10 characters with whitespace, 8 without, 0 Han characters, 2 words and 2 lines.

Frequently asked questions

How are characters counted?

Characters are Unicode code points, including spaces, punctuation and line breaks. Combined emoji may contain several code points.

How are words counted?

Intl.Segmenter uses Chinese word segmentation, including Han and English words. Results may vary slightly between browser versions.

Why is there no result for empty input?

Empty input prompts you to enter text or load the example; no statistics are generated. Lines in nonempty text are counted using line breaks; a trailing line break adds an empty line.

Related tools