📝 Word Counter
Real-time word, character, and readability analysis. Paste or type your text below.
📋 When to Use the Word & Character Counter
Writers and students check word count against essay requirements (500-word blog post, 1500-word article, 5000-word dissertation chapter). SEO copywriters monitor character count for meta descriptions (150–160 characters before Google truncation) and title tags (50–60 chars). Social media managers verify posts fit platform limits — Twitter/X (280 characters), LinkedIn (~700), Instagram captions (2200). Bloggers use the reading time estimate to set audience expectations (“3 min read”), and video script writers convert word count to speaking time for timing voiceovers and presentations. Translators compare source and target word counts to scope projects accurately. Because stats update on every keystroke, there's no “Calculate” button — just type or paste.
⚙️ How the Word & Character Counter Works
All counting runs in real time via the input event — every keystroke triggers recalculation. Words: the text is trimmed and split on one-or-more whitespace characters (/\s+/ regex), covering spaces, tabs, and newlines. Characters: simple string length (.length) for total count; a second metric removes all whitespace with .replace(/\s/g, '') for character count without spaces. Sentences: detected by /[.!?]+/g — each group of sentence-ending punctuation (. ! ?) counts as one sentence; “Hello!!!” is one sentence, not three. Paragraphs: split on two-or-more newlines (/\n\n+/), mirroring how paragraphs appear with blank lines between them. Reading time uses 238 words per minute (average adult silent reading speed), rounded up with a 1-minute floor; speaking time uses 130 WPM (conversational speech rate). The tool uses no CDN libraries or API calls for counting — pure JavaScript running entirely in your browser.
How to Use the Word Counter
- Type or paste your text — Start typing in the text area or paste content from any source. Stats update in real time.
- Check word count — The Words stat shows total words. Ideal for meeting essay, article, or SEO content length requirements.
- View detailed stats — Characters, characters without spaces, sentences, and paragraphs are all tracked simultaneously.
- Estimate reading time — Reading time (238 WPM) and speaking time (130 WPM) help plan presentations and video scripts.
Frequently Asked Questions
How are words counted?
Words are counted by splitting text on one-or-more whitespace characters using the regex /\s+/. This covers spaces, tabs, and newline characters. Punctuation attached to words — like “word.” or “hello!” — doesn't create separate words because there's no whitespace between them. Empty input or whitespace-only text shows zero for all metrics.
What reading speed is used?
Reading time uses 238 words per minute — the widely-cited average adult silent reading speed for non-technical English text, based on research by Brysbaert (2019). Speaking time uses 130 WPM — the average conversational speech rate. Both are rounded up (Math.ceil) with a minimum of 1 minute so short texts still show a meaningful estimate. Actual speed varies with text complexity, familiarity, and individual reading ability.
How are sentences detected?
Sentences are counted using the regex /[.!?]+/g, which matches groups of sentence-ending punctuation. Periods (.), exclamation marks (!), and question marks (?) are detected; multiple consecutive marks like “!!!” or “...” count as a single sentence ender — so “Wait... what?” is 2 sentences, not 5. The counter does not distinguish between periods used for abbreviations (e.g., “Dr.”) and sentence endings — all periods count.
Can I count characters for social media?
Yes — the counter shows both total and space-free character counts side by side. Use Characters for platforms that count spaces (Twitter/X: 280, Instagram captions: 2200, LinkedIn: ~700). Use Chars (no spaces) when space characters aren't counted toward the limit. For SEO meta descriptions, aim for 150–160 total characters to avoid truncation in Google search results. Both metrics update instantly as you type.
Why are characters without spaces different from total characters?
Total characters counts every character in the text — letters, numbers, punctuation, spaces, tabs, and line breaks. Characters without spaces excludes all whitespace characters (matched by /\s/g — spaces, tabs \t, newlines \n). For example, “Hello world.” has 12 total characters but 10 without spaces (2 spaces removed). Some platforms like SMS count every character including spaces; others like Google's meta description care about rendered length where spaces are visible. Seeing both numbers lets you adapt to either requirement.
Does the counter update in real time?
Yes. The counter uses the browser's input event — every character you type, delete, or paste triggers an instant recalculation of all 7 metrics (words, characters with/without spaces, sentences, paragraphs, reading time, speaking time). There's no submit button and no page reload. Paste a 5,000-word document and all stats appear immediately. This real-time behavior makes it ideal for writing sessions where you're watching a word count target or character limit as you compose.