Line Counter
Paste any text to instantly count total, empty, and non-empty lines, plus the longest line length.
0
Total lines
0
Non-empty lines
0
Empty lines
0
Longest line (chars)
Frequently Asked Questions
What counts as an empty line?
A line that's blank or contains only whitespace after trimming counts as empty.
Why would I need the longest line length?
It's handy for spotting lines that might overflow a fixed-width display, log column, or code style limit (like 80 or 120 characters).
Does this work on code files?
Yes — paste any plain text, including source code, logs, or CSV data, and it works the same way.
Explore CodeSpeedTest