Line Counter
Count lines, blank lines, and words in any block of text.
About this tool
Count total lines, non-empty lines, and blank lines in any block of text as you type — useful for checking a log file, estimating lines of code, or verifying a list has the number of rows you expect before pasting it somewhere else.
Why blank lines are counted separately
Total line count alone can be misleading — a file with a lot of blank lines between entries will report a high count that doesn't reflect how much actual content is there. Seeing non-empty and blank lines broken out separately makes it obvious whether a large line count means a lot of real content or just a lot of spacing.
What counts as a line
A line is any text ending in a line break — including a line that contains nothing but whitespace, which counts toward the total and blank-line counts even though it might look identical to a truly empty line. Trailing whitespace-only lines at the end of a file are easy to introduce by accident and easy to miss without a count like this.