Word counter
Count user-perceived Unicode grapheme clusters, whitespace-separated word groups, and text lines locally.
Inputs stay in your browser
Interactive tool
Enable JavaScript to use the interactive controls. The guide below is available without JavaScript.
The word counter reports characters, words, and lines as defined by the current implementation. It is intended for quick text inspection rather than language-aware publishing counts.
When to use this tool
- Check the approximate length of a short draft.
- Count lines in pasted notes or a small text block.
How to use
- Paste or type text in the input area.
- Read the character, word, and line totals as they update.
- Copy the three totals if a portable summary is needed.
Example
Mixed-language text
For one two followed by a newline and 三, the tool reports 9 characters, 3 whitespace-separated words, and 2 lines.
How it works
- Characters use Intl.Segmenter grapheme boundaries when available, so combining sequences and joined emoji count as one visible character. Words are non-empty groups separated by whitespace. Lines are separated by CRLF, CR, or LF; empty input has zero lines.
Limits and notes
- Chinese text without spaces is counted as one word group rather than segmented into individual words.
- The fallback used by older browsers approximates common combining and emoji sequences and can differ from full Unicode grapheme segmentation.
- The tool does not count pages, sentences, reading time, or byte length.
Frequently asked questions
Are spaces counted as characters?
Yes. Character counting includes whitespace grapheme clusters.
How are Chinese words counted?
Only whitespace boundaries are used, so an unspaced Chinese sentence is one word group.
Does a trailing newline add a line?
Splitting by line breaks can produce an additional empty final line when the input ends with a newline.
References
Related tools
Send tool feedback
The message includes page context only, never tool input or results.
Send tool feedback