Word Counter
Use word counter locally, without uploading your data.
Loading calculator…
What this tool does
Use word counter locally, without uploading your data. Words use whitespace separation; character count is code points, not visual grapheme clusters.
How to use the Word Counter
- Enter or select text.
- Read the calculated result; change any measurement to compare alternatives.
Formula
word count splits whitespace; character count counts Unicode code points; UTF-16 length also reported
- value
- Text
Words use whitespace separation; character count is code points, not visual grapheme clusters.
Worked example
For word counter, the following measurements illustrate the exact method: Text: MasterTool makes useful calculations simple..
Inputs
- TextMasterTool makes useful calculations simple.
Result
- Words5
- UTF-16 code units44
- Characters excluding whitespace40
- Lines1
Results explained
- Words
- Words from the formula above. Words use whitespace separation; character count is code points, not visual grapheme clusters.
- UTF-16 code units
- UTF-16 code units from the formula above. Words use whitespace separation; character count is code points, not visual grapheme clusters.
- Characters excluding whitespace
- Characters excluding whitespace from the formula above. Words use whitespace separation; character count is code points, not visual grapheme clusters.
- Lines
- Lines from the formula above. Words use whitespace separation; character count is code points, not visual grapheme clusters.
Frequently asked questions
word count splits whitespace; character count counts Unicode code points; UTF-16 length also reported
Words use whitespace separation; character count is code points, not visual grapheme clusters.
No. Content stays in your browser and no API is called.
Copy the result, review it in your project, and test it in the intended environment.
No. Syntax checks and conversions cannot replace application-specific testing, security review or accessibility review.