jump totool workspace
ToolHub

Text statistics

Real-time counting of characters, words, lines and UTF-8 bytes.

Runs the entire process locally
views
—
favorites
—

total characters

16

No whitespace

14

word

5

UTF-8 bytes

30 B

Statistics text

2 lines · UTF-8Loading…

Character composition

Chinese7 · 44%
other letters7 · 44%
numbers0 · 0%
blank2 · 13%
other characters0 · 0%

Total number of rows

2

non-blank line

2

paragraph

1

grapheme cluster

16

The total characters are counted according to Unicode code points; grapheme clusters and words use browser international word segmentation, and the combined Emoji may contain multiple code points. Old browser bounce code points and English word statistics.

Tool description and FAQ

Tool Guide

01Text size and character composition

After input, the number of code points, the number of code points excluding whitespace, the number of words, and the amount of UTF-8 bytes are displayed immediately. The distribution on the right classifies each code point as Chinese, other letters, numbers, blanks, or other characters, with no overlapping categories.

02Code points, grapheme clusters and words

A code point is a Unicode encoding unit; a grapheme cluster is closer to a visible character, such as a combined phonetic symbol or a family emoji. Words and grapheme clusters use Intl.Segmenter, and the result depends on the browser's language segmentation rules; if it is not supported, code points and English word statistics will be returned.

03File and local processing

Text files can be opened or dragged in, up to 5 MB in size. The editing area supports line numbers and search, and the output can be copied or downloaded. The content is only processed in the current browser and is not uploaded or automatically saved. Please save important content before refreshing or loading examples.

FAQ

Q1Why are the number of characters and the number of bytes different?

Chinese characters in UTF-8 usually occupy multiple bytes, and Emoji may also be composed of multiple code points. If your database, file, or interface has a byte limit, check the UTF-8 byte amount.

Q2Why are the number of words slightly different for different devices?

Internationalized word segmentation is determined by the browser's Unicode and language data, and device versions may differ. Old browser fallback statistics are simpler and cannot be used as a unified standard for word count in publishing.

Q3Will copying statistics bring out the original text?

What is copied is the JSON of the statistical fields and values, excluding the original input text. The original text is still only in the current page memory.