Guide

How to Count Words and Characters

Why word and character counts differ between tools, and how to choose a count that matches your purpose.

A word count is a convention, not a property of text. Tools disagree because they define what separates a word — whitespace, punctuation, or Unicode word boundaries — and character counts disagree at the code-unit level.

01Definitions to pin down

  • Whitespace words: split on runs of spaces, tabs, and newlines.
  • Unicode words: split on the boundaries defined by Unicode Standard Annex #29.
  • Characters: UTF-16 code units, Unicode code points, and grapheme clusters are three different numbers.

02Limitations

Counts are language-sensitive: scripts written without spaces and texts that use combining marks can be counted differently even by tools that claim the same rule.

Frequently asked questions

Why do two word counters show different totals for the same text?
They use different word-boundary rules, most often whitespace splitting versus Unicode segmentation.

Sources

  1. Unicode Standard Annex #29: Unicode Text Segmentation — Unicode Consortium (accessed 2026-09-27)