Text utility
Word Counter
Paste or write your text to see its word, character, whitespace-free character, and line totals immediately.
Count your text
Words are counted as non-empty tokens separated by one or more whitespace characters.
Character totals use UTF-16 code units.
- Words
- Characters
- Characters excluding whitespace
- Lines
How to use this word counter
Add your text and read the four totals as you work.
- Type or paste text into the text area.
- Review the word, character, whitespace-free character, and line totals below it.
- Edit your text whenever needed; every total updates immediately.
Frequently asked questions
- How are words counted?
- After trimming the text, each sequence of non-whitespace characters counts as one word. Empty or whitespace-only text has zero words.
- What counts as a character?
- The character total is the length of the text in UTF-16 code units, including spaces, punctuation, and line breaks.
- How are lines counted?
- Each line separated by a supported line break counts as one line. Empty text has zero lines.
Related tools
Create a unique identifier for your next development task.