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 uploadedUp to 1 MiB. Segmented word counts may differ from office software counts.
Enter content, then choose an action.
How to use
- Paste nonempty text and click Count. Copy or download the results.
- 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.
- 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
Text comparison
Compare two texts by lines or characters, highlight differences and export results.
Translation quote brief
Organize translation requirements into a brief you can copy, download or print. No login; processed in your browser.
CSV deduplicator
Remove duplicate rows, keep their first occurrence and export CSV.