⭐ 0

Count Lines in Text Online

Count lines in any text live as you type: total, non-empty and blank lines, plus longest and average line length.

Processed entirely in your browser — nothing you enter here is ever uploaded.

0
Total lines
0
Non-empty lines
0
Blank lines
0
Longest line (chars)
0
Average line length
Processing... 0%

Result

About this tool

Need to know exactly how many lines a block of text takes up — for a form field with a line limit, a poem with a fixed number of verses, or a list you're about to paste somewhere with a row cap? This page opens the line counter ready for exactly that: paste your text and the total updates immediately.

The total line count follows how a text editor numbers lines, so trailing blank lines and empty lines in the middle both count — nothing is silently dropped or merged. Alongside the total you also get the non-empty line count, the blank line count, the longest line's length and the average line length, all live.

Nothing you paste here is uploaded: the count happens entirely in your browser, so drafts, private lists and unpublished text stay on your device.

Example. The text a, a blank line, then b counts as 3 lines, 2 non-empty, 1 blank, longest length 1, and average length 0.7.

Limit. A completely empty box is reported as zero lines, while a lone newline is reported as two lines, matching editor line numbering.