Developer Utilities · Free tool
Line Counter
Count total lines, blank lines, comment lines, and code lines in any paste. Great for LOC estimates and log review.
Updated April 2026
Line statistics
Total lines
0
Lines with content
0
Non-empty lines
0
Empty lines
0
Shortest line
0 chars
Longest line
0 chars
Average length
0.0 chars
What it does
Count lines in any text paste with a breakdown of total, blank, comment (for // and # styles), and code lines. Useful for quick LOC estimates, reviewing logs, and sizing chunks before running TXT splitter.
Pair with character counter, word counter, and remove duplicate lines for a complete pass on a text file.
How to use it
- Paste or drop a text file.
- Read the live stats — total, blank, code, comments.
- Pick the comment syntax if counting code files.
- Copy the report or export the breakdown.