Free online word counter
Processed on this device. Your text and files are not uploaded.
Your text
Ready for your text.
Results
Words are whitespace-separated tokens; character counts use Unicode code points.
How to count words in text
- Paste or type your text, or select a UTF-8 plain-text (.txt) file up to 5 MB.
- Choose Count text. Imported files are counted automatically.
- Read the four totals. Choose Clear text and file when you are finished.
How the counts work
Words are nonempty tokens separated by whitespace. Characters are Unicode code points; some emoji and combined letters contain more than one code point. Characters without whitespace exclude spaces, tabs and line breaks. Lines are separated by LF, CRLF or CR; a trailing line break adds an empty line. Empty text has zero lines.
Example
The text Hello world! contains 2 words, 12 characters, 11 characters excluding whitespace and 1 line. A hyphenated expression such as well-known is counted as one token. Languages without spaces and word processors with different tokenization rules may produce different counts.
Does the word counter upload my text?
No. This tool reads and counts text on your device using a browser worker. It does not send text or selected files to ArrayDock. Your original file stays on your device. Read our privacy notice.
Supported files and limitations
This tool accepts pasted text and UTF-8 plain text, not PDF or Word documents. Copy text from those documents first. File imports are limited to 5 MiB (5,242,880 bytes). The tool requires JavaScript and a browser supporting Web Workers.