0

Line Counter

Count lines in any text live as you type: total, non-empty and blank lines, plus longest and average line length.

0
Total lines
0
Non-empty lines
0
Blank lines
0
Longest line (chars)
0
Average line length
Processing... 0%

Result

Whether you're checking a script against a line limit, sizing up a CSV export, or estimating how many rows a code review will touch, eyeballing line breaks in a long paste is slow and error-prone — and counting by hand only gets worse once blank lines and trailing whitespace get involved.

This line counter reports the total line count exactly the way a text editor numbers lines — including blank ones — plus how many of those lines actually contain text versus how many are empty, the length of the longest line, and the average line length in characters. Everything updates instantly as you type or paste, with no button to press.

The count runs entirely in your browser, so source code, logs and unpublished drafts never leave your device. If you also need word or character counts, this site has a dedicated word counter and character counter — this tool focuses purely on lines.