Text Tools
Line Counter
Paste a list, script, or block of code to count total lines, non-empty lines, and blank lines.
Your text
Result
Total Lines0
Non-Empty Lines
0
Blank Lines
0
Frequently asked questions
Only actual line breaks (new lines) count — visually wrapped text that doesn't contain a line break character is counted as a single line, regardless of how many lines it takes up on screen.