inyourbrowser.com

Word counter

Word counter is a text tool that counts words, characters, sentences, and paragraphs in any text. It updates live as you type, estimates reading time, and supports per-selection statistics for measuring sections in isolation. The tool runs in your browser.

Text input

COUNT

Runs entirely in your browser

How to count words in text

  1. Paste or type your text into the input area.
  2. The word count, character count, sentence count, and reading time update instantly as you type.
  3. Review the statistics in the summary bar.
  4. Clear the input to start a fresh count.

Common uses

  • Checking that a blog post, essay, or article meets a specific word count requirement, then check the readability score to ensure the text is accessible
  • Estimating reading time before publishing content online
  • Counting characters for social media posts with strict character limits, use Lorem Ipsum generator to fill a template before you have real copy

Technical specification

  • Algorithm or formula: Words = sequences split by whitespace regex (/\s+/). Sentences = splits on terminating punctuation (.!?). Paragraphs = splits on blank lines. Reading time = words / 225 wpm (mid-range adult average).
  • Browser API or library: Pure JavaScript with native string methods and regular expressions. Uses Selection API to recompute statistics for highlighted text.
  • Input limits: No hard cap; tested with documents up to 1 MB without delay.
  • Output: Word, character (with and without spaces), sentence, paragraph counts and estimated reading time. Selection-aware.
  • Known limitations: Word definition is whitespace-based; punctuation-attached tokens (e.g., "well-known") count as one word. Sentence detection is heuristic and may misjudge abbreviations like "Mr." or "e.g.".

Frequently asked questions

Is my text sent to a server?
No. All counting happens in your browser.
How is reading time calculated?
Reading time is estimated at 200 to 250 words per minute, a standard adult reading speed for on-screen content.
What counts as a word?
A word is any sequence of characters separated by whitespace. Hyphenated words count as one word. Numbers count as words.
Can I count words in a specific section?
Select any portion of text in the input area and the statistics update to reflect just your selection.

Reviewed and tested May 26, 2026.