Line Counter
Count lines in text or code, including non-empty and blank lines, with the longest and average line length.
What is the Line Counter?
Line counts are used for lines-of-code estimates, CSV row counts and checking list lengths.
How does it work?
Text is split on Windows, Mac or Unix line breaks. Blank lines contain only whitespace.
Example
A file with 120 lines, 20 of them blank, has 100 non-empty lines.
Frequently asked questions
Is my text uploaded anywhere?
No. All processing happens in your browser, so your text never leaves your device.
Related tools
Enable JavaScript to use this calculator.