What you can do with Word Counter
- Count words in text
How this text processing works
Count words, characters (with and without spaces), sentences, and paragraphs in real time, and estimate reading and speaking time.
Example input
Hello world. This is a short test!Example output
7 words · 34 characters · 28 without spaces · 2 sentences · 1 paragraph · ~1 min readingPractical workflow
- Type or paste your text into the editor; the counters update on every keystroke.
- Read the eight cards: words, characters, characters without spaces, sentences, paragraphs, reading time, speaking time, and average characters per word.
- Use Copy to grab the text or Clear to start over.
Common use cases
- Stay within a word or character limit for an essay, abstract, application form, or ad copy.
- Estimate how long a blog post takes to read or a speech takes to deliver.
- Check tweet, meta description, or title lengths before publishing.
Important notes and limitations
- Counting runs in your browser and nothing is stored — the text is gone when you close the tab.
- Reading time assumes 200 words per minute and speaking time 130 words per minute, both rounded up to the next minute.
- Sentences are split on . ! and ? characters, so abbreviations such as “e.g.” and ellipses can inflate the sentence count.
- Input is limited to 1,000,000 UTF-16 code units, and the editor scrolls internally after 420px to keep long text from expanding the page. Character counts use JavaScript UTF-16 code units, so an emoji can count as more than one character. Punctuation-only and whitespace-only fragments do not count as sentences.
Unix CLI wc & regex text metrics commands
Unix wc word, line, and byte count
wc -l -w -c document.txtOutputs line count, word count, and byte count using standard Unix wc utility.
Exact character count excluding newlines
tr -d '\n' < document.txt | wc -mCounts multi-byte characters accurately while stripping newline delimiters.
Count occurrences of specific word with grep
grep -o -i '\bkeyword\b' document.txt | wc -lSearches for whole-word matches case-insensitively and counts total occurrences.
Text Metric Calculation Algorithms & Encoding Comparison
| Metric | Algorithm / Boundary Rule | Multi-Byte Handling | Platform Difference | Standard Formula |
|---|---|---|---|---|
| Word Count | Splits by Unicode whitespace & punctuation delimiters | CJK ideographs counted per character, Latin by space | Microsoft Word counts hyphens differently than Google Docs | Count of matched \S+ tokens |
| Character Count (with spaces) | Counts every Unicode code point including spaces and newlines | 1 character = 1 code point (Surrogate pairs count as 1) | Standard length across all text processors | Array.from(str).length |
| Character Count (no spaces) | Excludes whitespace (\s) from total character count | Preserves multi-byte glyphs | Standard measure for academic and translation billing | str.replace(/\s/g, '').length |
| Reading Time | Assumes standard average adult silent reading speed | Language dependent (English vs CJK) | Medium assumes 275 WPM; EasyUtils uses 200-250 WPM | Words / 200 = Minutes |
| Speaking Time | Assumes presentation and speech pace | Standard broadcast standard | Podcasters and speechwriters assume 130-150 WPM | Words / 130 = Minutes |
Character count & word boundary troubleshooting
Character count mismatch between JavaScript .length and actual count
Cause: JavaScript's String.prototype.length returns UTF-16 code units. Emojis and extended characters (like 🚀 or 👨👩👧👦) take 2 to 7 code units.
Solution: Use the Intl.Segmenter API or Array.from(str).length to count visible Unicode grapheme clusters accurately.
CJK text (Chinese, Japanese, Korean) word count shows as 1 word
Cause: CJK scripts do not use spaces between words; standard \b word boundaries fail to separate individual words.
Solution: EasyUtils counts individual CJK characters as semantic word equivalents to provide accurate reading time estimates.
Twitter / X post length rejection despite being under 280 characters
Cause: Twitter uses weighted character counting: standard ASCII counts as 1 weight, but CJK characters, emojis, and full URLs count as 2 weights or fixed 23 characters.
Solution: Refer to the platform-specific character limit indicators in EasyUtils to ensure compatibility with social media post bounds.
Continue your workflow
- Diff Checker — Compare text revisions side-by-side with line and character diff highlighting.
- LLM Token Counter — Compare character and word counts against BPE tokenizer token counts for LLMs.
- Slug Generator — Convert text headlines into URL-safe, SEO-friendly slug strings.
- Text Utilities — Manipulate text case, strip whitespace, remove line breaks, and deduplicate lines.
- Instagram Line Breaker — Format social media post captions with clean line spacing within character limits.
Frequently asked questions
How are words counted?
The text is trimmed and split on any run of whitespace, so hyphenated words count as one and numbers count as words.
What is the difference between characters with and without spaces?
Characters with spaces is the total length of the text, which is what most platform limits use. Characters without spaces removes every space, tab, and line break.
How is reading time calculated?
Words divided by 200 words per minute, rounded up. Speaking time uses 130 words per minute, a typical presentation pace.
Does it count paragraphs correctly if I use single line breaks?
A paragraph ends at a blank line. Lines separated by a single line break are counted as one paragraph.