TXT Word Counter
Count the words in plain-text files, including large exports and logs. The encoding is detected automatically.
Choose files
| File | Words | Characters | No spaces | Pages | Reading time | Open in editor |
|---|
Counted in your browser — nothing is uploaded.
Text analysis
| Keyword | Count | Density |
|---|
Start typing to see the most frequent words.
| Character | Count | Density |
|---|
Add at least 3 sentences and 50 words for a meaningful score.
- Words per sentence
- –
- Syllables per word
- –
| Platform | Limit | Your text | Left |
|---|
Change case
Clean up
- Pages
- 0
Estimate for 12 pt Times New Roman with 2.54 cm (1 in) margins, about 500 words per single-spaced page, scaled for other sizes.
- Messages
- 0
- Left in this message
- 160
- Encoding
- GSM-7
- Characters used
- 0
- Per message
- 160
These characters switch the message to Unicode:
Every character fits the GSM-7 alphabet.
A single SMS holds 160 GSM-7 or 70 Unicode characters. Longer texts are split into parts of 153 or 67.
How to use it
- Drop one or more .txt files onto the box.
- Check the words, characters and reading time; the detected encoding is shown under the file name.
- Open a file in the editor to see lines, paragraphs and keyword density.
How we count
Files with a byte order mark are read as UTF-8 or UTF-16. Otherwise we try strict UTF-8 first.
If the file is not valid UTF-8, we fall back to the most common legacy encoding for this page's language (for example Windows-1252 for English, GB 18030 for Simplified Chinese, Shift_JIS for Japanese).
Counting then follows Microsoft Word rules; Windows (CRLF) and Unix (LF) line endings are treated the same.
Frequently asked questions
Why do I see strange characters?
The file probably uses an encoding we guessed wrong. Open it in a text editor and save it as UTF-8, then drop it here again.
Are my files uploaded?
No. Files are opened and read by JavaScript in your browser; nothing is uploaded, and the text is not sent with analytics. If you open a file's text in the editor, it is kept as a draft in this browser until you clear it.
How large can a text file be?
Up to 50 MB. Long texts are counted in a background thread, so the page stays responsive.
Are line breaks counted as characters?
No. As in Word, line breaks are not characters. The number of lines and paragraphs is shown in the statistics when you open the file in the editor.
Can I count CSV or log files?
Yes, any plain-text file works. Note that every value separated by spaces counts as a word.
Which encodings are supported?
UTF-8 and UTF-16 everywhere, plus one legacy encoding chosen by the page language: Windows-1252 on English pages, GB 18030 on Simplified Chinese, Big5 on Traditional Chinese, Shift_JIS on Japanese and EUC-KR on Korean pages, for example.