CountText

Free word, character and text counter

Home › Guides › Why word counts differ

Why word counts differ between tools, and what to do about it

By CountText · Last reviewed November 21, 2026

There is no single official definition of a "word". Tools choose one, and the choices disagree most on exactly the text people care about: hyphenated terms, dashes, numbers, links and notes.

You paste an essay into one tool and get 1,012 words. Another tool says 1,031. A third says 996. Nothing is broken. Each tool has made a different decision about what a word is and what part of the document to count, and those decisions add up. Understanding the common ones lets you predict which way a number will move, which is more useful than hoping two tools agree.

Two methods of counting words

Most word counters use one of two ideas.

Whitespace splitting. The text is trimmed, then split wherever there is whitespace (spaces, tabs, line breaks). Every non-empty piece is a word. This is how CountText works, and it is simple to explain and to check by hand. The weakness is that it counts whatever sits between spaces, including a lone dash or ampersand, and it does nothing for languages that are written without spaces.

Unicode word-boundary rules. The Unicode Standard publishes an annex on text segmentation (UAX #29) that describes where word boundaries fall, and that annex says reliable boundaries for languages such as Chinese, Japanese, Thai or Lao need dictionary lookup or similar mechanisms [1]. Browsers expose this through Intl.Segmenter with word granularity [2]. This approach drops pure punctuation, and it splits text at hyphens, slashes and dots in places a human reader would not.

Here is the same sentence counted both ways. The sentence is:

The state-of-the-art tool costs $3.50 — and it's free; e-mail me at hi@example.com or see https://counttext.net/.

One sentence, two methods (computed November 2026)
MethodWordsWhat happened
Whitespace split (CountText's method)16state-of-the-art is 1, $3.50 is 1, the lone dash — is 1, the e-mail address is 1, the URL is 1.
Intl.Segmenter, English locale, word-like segments only21state-of-the-art becomes 4 pieces, e-mail becomes 2, the e-mail address becomes 2, the URL becomes 3, and the dash disappears.

The two numbers differ by five on a single sentence. Neither is wrong; they answer different questions. The segmenter result also depends on the browser and its Unicode data, so we show it as an illustration of the idea and not as the answer any particular product would give.

The usual suspects

Hyphens and compounds

A whitespace counter treats well-known as one word. A boundary-rule counter may treat it as two. If an essay uses many compounds, this alone can move a total by dozens of words.

Dashes

An em dash with no spaces around it, as in word—word, is part of a single chunk for a whitespace counter, so the pair counts as one word. With spaces, word — word, the dash becomes its own chunk, and CountText counts it as a word. We checked: word—word and word — word comes out at 5 in CountText. If your style guide uses spaced dashes, your count rises for no editorial reason. The same applies to a standalone & or /.

Numbers, dates and symbols

$3.50 and 5/12 are one chunk for a whitespace counter. A segmenter may keep 3.50 together but split 5/12.

URLs and e-mail addresses

For whitespace counting a link is one word, however long. For boundary rules it can become several. If a form says "no URLs" or counts links separately, follow the form.

What part of the document is counted

This is the biggest source of large differences, and it is documented. Google Docs states that unless you select a section, its word count applies to everything except headers, footers and footnotes [3]. Microsoft Word's Word Count dialog has a checkbox labelled "Include textboxes, footnotes and endnotes", which changes the total when your document has any [4]. Word also counts just the selection when you select text, and shows the document total next to it [5]. So the same file can legitimately show two totals in two applications, or in one application with a different checkbox. For a side-by-side breakdown of what each editor officially leaves in or out, see how Google Docs and Microsoft Word count words.

Bibliographies, titles, headings and captions

Assignments often say whether these count. A counter cannot know. If the instruction says "excluding references", delete the reference list from the text you paste, or subtract its count yourself.

Characters have their own variants

Word counts are not the only numbers that drift. A character count can be measured in UTF-16 code units, in code points, or in user-visible characters, and the three disagree on emoji and accented letters. See Emoji, zero-width and hidden characters and Characters, bytes and weights.

What CountText does, precisely

CountText takes the text, removes whitespace at both ends, splits on any Unicode whitespace and counts the non-empty pieces. Punctuation attached to a word stays attached: Hello, is one word and don't is one word. A line break counts as whitespace, so words split across a new line are separate. It does not know any language, which is why the word figure is labelled "rough" in the interface and why it is not meaningful for Chinese, Japanese or Korean text written without spaces (see Counting Chinese, Japanese and Korean text). The character figures, in contrast, are exact for what a person sees as characters.

A practical routine when the number matters

  1. Find out which tool decides. If a form enforces the limit, its counter is the only one that matters. Everything else is an estimate.
  2. Count the same scope. Paste only the part that is being counted: body text without headings, references or captions if the rules exclude them.
  3. Compare two tools. If two counters differ by a few percent, you have an idea of your risk. If they differ by more, look for compounds, spaced dashes, links and notes.
  4. Keep a margin. Aim for a little under the limit instead of exactly on it. A margin of a few words absorbs most method differences.
  5. Check whether the rule is pages instead of words. Applications such as federal résumés enforce page limits rather than word counts; see our résumé and cover letter length guide.
  6. Do the last check in the destination. Paste into the submission box and read its number.

Sources (checked November 2026)

  1. Unicode Consortium, UAX #29: Unicode Text Segmentation (word boundaries and the need for dictionary lookup for Chinese, Japanese, Thai and Lao).
  2. MDN Web Docs, Intl.Segmenter.
  3. Google Docs Help, Count the words in a document.
  4. Microsoft Q&A, Word Count: include textboxes, footnotes, endnotes (confirms the checkbox name in Word's dialog; this is a community thread on Microsoft's site, not a help article).
  5. Microsoft Support, Show word count (counting a selection and the whole document).
  6. Examples and numbers in the tables were computed by us in November 2026 with the same counting rules as the CountText counter page and with Node.js Intl.Segmenter.

Try it: Open the CountText counter to see characters, paragraphs and a whitespace-based word count as you type. Your text stays in your browser.