Paragraph Counter
Count nonempty paragraphs separated by blank lines, along with their word counts.
Your workspace
Server processingThe Paragraph Counter analyzes your text to identify nonempty paragraphs separated by blank lines, providing both the total paragraph count and the specific word count for each block.
Using the Paragraph Counter
- Paste your text into the input area.
- Run the tool to process the content.
- Review the returned JSON to see the total paragraph count and the individual word count for each paragraph in sequence.
The counting method
The tool defines a paragraph as any block of text separated by one or more blank lines. It ignores empty lines and whitespace-only lines, ensuring that only meaningful content is counted. Each paragraph is then tokenized by whitespace to calculate its word count.
Interpreting the result
The output is provided as a structured JSON object. The paragraphs field indicates the total number of valid paragraphs found, while the wordCounts field provides an array of integers corresponding to the number of words in each paragraph, listed in the order they appear in the source text.
Example analysis
First paragraph text. Second paragraph has more words.
{"paragraphs": 2, "wordCounts": [3, 5]}
Frequently asked questions
What defines a paragraph for this tool?
A paragraph is any sequence of text separated by one or more blank lines. Lines containing only whitespace are treated as separators and are not counted as paragraphs.
Is there a limit to how much text I can process?
Yes, the tool accepts a maximum of 50,000 characters. Input exceeding this limit will not be processed.