Line Counter

Count all lines, blank lines and lines that contain text.

Workspace

Result

Your result will appear here.

How to use it

  1. Fill in text.
  2. Select “Process text” to see the result.

Worked example

Input
first

second
third
Output
Total lines: 4
Nonblank lines: 3
Blank lines: 1

Frequently asked questions

Does a trailing newline count as a blank line?

Yes. Each line break begins a new line. A line with only whitespace is blank.