QuickFreeTools

Online Line Counter

Count the number of lines in text. Empty lines count as lines. Optionally show non-empty line count. Client-side only.

4 lines

Frequently Asked Questions

How are lines counted?
Typically the text is split by newline characters. The number of lines is the number of parts (so 3 newlines = 4 lines). Empty lines still count as lines.
Empty lines?
By default every newline creates a new line, so blank lines are counted. You can often toggle to count only non-empty lines (lines with at least one non-whitespace character).
Last line without newline?
If the text doesn't end with a newline, the last segment still counts as one line. So 'a\nb' is 2 lines.

Related Text Tools