Line Counter

Count the lines in any text — total, non-empty and empty — with average line length, the longest line, and an option to download the text with line numbers added.

0Total lines
0Non-empty lines
0Empty lines
0.0Avg chars / line
0Longest line (chars)

When line counts matter

Line counts come up in code reviews, subtitle and caption files, poetry, data cleanup and anywhere a list is stored one item per line. The empty-line count is often the most useful number: blank lines sneak into pasted lists and break imports, and this counter shows them immediately.

Numbered download

The download button saves your text with a line number at the start of every line — handy for referencing specific lines in feedback, tickets and classroom handouts.