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, shows the character count with and without spaces, and counts each Chinese or Japanese character as one word. 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, character, sentence and paragraph counts 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
  • Checking length before publishing content online, then estimating how long it takes to read with the reading time estimator
  • 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+/), with each Chinese or Japanese character counted as one word. Sentences = splits on terminating punctuation (.!?…) followed by a space or the end of the text, and on Chinese and Japanese full stops; segments with no letter or digit are not counted. Paragraphs = splits on blank lines.
  • Browser API or library: Pure JavaScript with native string methods and regular expressions.
  • Input limits: No hard cap; tested with documents up to 1 MB without delay.
  • Output: Word, character (with and without spaces), sentence and paragraph counts.
  • Known limitations: Word definition is whitespace-based outside Chinese and Japanese; 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

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. Chinese and Japanese have no spaces between words, so each Chinese or Japanese character counts as one word.
What statistics does this word counter show?
Word count, character count (with and without spaces), sentence count and paragraph count. Numbers update instantly as you type. All counting happens in your browser.
Can I count words in a specific section?
Paste only the section you want to measure. The counts always cover the whole text in the box.
Is my text sent to a server?
All counting runs in your browser. Our servers are not involved at any point.

Related tools

Readability checker
Flesch reading ease, grade level, and estimated reading time. Paste any text and see the score.
Text diff
Compare two texts in word, side-by-side, or git-style views. The word and side-by-side views highlight changed words.
Case converter
Convert text between camelCase, snake_case, kebab-case, PascalCase and more.
Extract text from PDF
Extract plain text from a PDF using pdfjs-dist. Copy or download. Runs in your browser.

Reviewed and tested September 30, 2026.