Guides

Count words and lines in a UTF-8 file

Follow these steps using a local file and keep the original.

Count words and lines in a UTF-8 file
Actual local tool workspace with a synthetic sample.
  1. Select a UTF-8 text file in Text Statistics.
  2. Read bytes, Unicode code points, whitespace-separated words and line count.
  3. Code points are not necessarily user-perceived characters, and languages without spaces may require different word segmentation.
Open related toolDownload sample