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
- Paste your text or drop a file.
- Read the line counts.
- 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.