Skip to tool

Line Counter

Count lines of text. Shows total, non-empty, longest, and average line length.

Input
0Total lines
0Non-empty
0Empty
0Avg chars/line
0Longest line
0Shortest line

More tools

Line Counter Dev / SEO tool Current Word Counter Count words Column Extractor Extract columns Remove Duplicates Dedupe lines

Line Counter

Count the lines in any text block. Useful for sizing logs, validating code against line-count limits, estimating file length, and quick QA.