- Words
- 0
- Characters
- 0
- No spaces
- 0
- Lines
- 0
Accepts .txt, .md, .yaml, .yml, and .json — files are read locally and never leave your browser.
Features
Real-time statistics
Words, characters, characters without spaces, and lines update instantly as you type or paste.
Accurate in every language
Locale-aware word segmentation counts Japanese, Chinese, and other unspaced languages correctly.
Emoji-aware characters
Counts user-perceived characters, so a single emoji is one character — not two or eight.
Private by design
Everything runs in your browser. Your text never leaves your device.
How to use
- Type or paste your text into the sheet above.
- Or drag and drop a .txt, .md, .yaml, or .json file onto it.
- Read the word, character, and line counts — they update as you type.
Questions
How does Word Counter count words?
Words are counted with the browser's built-in Intl.Segmenter, which performs locale-aware segmentation. Languages written without spaces, such as Japanese and Chinese, are counted correctly instead of being treated as a single word.
How are characters counted?
Characters are counted as user-perceived characters (grapheme clusters), so an emoji or an accented letter counts as one character. A separate count that excludes whitespace is also shown.
Is my text sent to a server?
No. All counting happens locally in your browser. Nothing you type or upload is transmitted or stored anywhere.
Which file types can I upload?
You can drag and drop or select .txt, .md, .yaml, .yml, and .json files. Files are read locally in your browser.