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
0
Characters
0
Characters excluding whitespace
0
Lines
0

How to use this word counter

Add your text and read the four totals as you work.

  1. Type or paste text into the text area.
  2. Review the word, character, whitespace-free character, and line totals below it.
  3. 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.

Create a unique identifier for your next development task.