Paste or type text for a live count of total lines, non-empty lines, and blank lines, plus word and character counts. Everything runs in your browser.
Your text never leaves your device — all counting happens locally.
This line counter gives a live count of total lines, non-empty lines, and blank lines, plus word and character counts, so you can check the structure and length of code, lists, or any text as you work.
The line counter splits your text on line breaks and counts every resulting piece, so the total line count equals the number of line breaks plus one. Text like 'a' then a blank line then 'b' counts as 3 total lines. Counting updates live as you type or paste.
A non-empty line contains at least one visible character after whitespace is ignored, while a blank line is empty or contains only spaces and tabs. The non-empty count plus the blank count always equals the total line count.
No. When the box is completely empty the tool reports zero total lines, zero non-empty lines, and zero blank lines. A line is only counted once you type a character or add a line break.