Paragraph Counter

Paragraph Counter lets you count text blocks separated by one or more blank lines. Enter your own values or load the worked example.

Method and calculation

Count text blocks separated by one or more blank lines.

Inputs and settings

Paragraph Counter accepts Input text.

Worked example

Paragraph Counter example — Input text: "Hello world\nA second line\nHello world". Computed output: { "paragraphs": 1, "nonemptyLines": 3 }

Output and limitations

Paragraph Counter: Input is treated as plain text; it is never executed.

Technical references: JavaScript Unicode normalization

Paragraph Counter FAQs

Paragraph Counter applies the following rule to your input: Count text blocks separated by one or more blank lines. The worked example on this page uses the same processor as the result button.
Paragraph Counter has these boundaries: Input is treated as plain text; it is never executed. Start by checking the input text field against the units or format shown.
Paragraph Counter provides this sample: { "paragraphs": 1, "nonemptyLines": 3 }. Use the sample button to reproduce it, then replace the inputs with your own values.