Line Counter

Count lines, blank lines and the longest line, with line numbers.

Your text

Draft kept on this device
Lines
0
With text
0
Blank
0
Words
0
Unique words
0
Characters
0
Characters without spaces
0
UTF-8 bytes
0
Sentences
0
Paragraphs
0
Lines
0
Average word length
–
Average sentence
–
Reading time (238 wpm)
0 sec
Speaking time (150 wpm)
0 sec
Readability (Flesch)
–
Grade level
–
Runs on this device. Nothing is uploaded.
Numbered lines appear here once there is some text.

About the Line Counter

Count the lines in a list, a log, a CSV or a poem. You get the total, the lines with content, the blank lines and the longest line, and a numbered view of the text. Windows, Mac and Unix line endings are all counted the same way.

How to use it

  1. Paste your text or drop a file.
  2. Read the line counts.
  3. Use the numbered view to find a line by its number.

Questions

Does a trailing newline count as a line?

An empty line at the very end is counted as a blank line, which is how most editors show it. The non-empty count ignores it.

Can it count lines in a large file?

Yes. Files of several megabytes open locally in the browser. Nothing is uploaded, so there is no size limit set by a server.

Are Windows (CRLF) line breaks handled?

Yes. \r\n, \n and \r all count as one line break.

Related tools