Count lines and non-empty lines.
How does Line Counter work?
Line Counter reports the total number of lines and the number of non-empty lines in your text, based on line breaks, updated as you type.
How to use it
- Paste your text or list into the box.
- Read the total line count and the non-empty line count shown below.
- Use this to sanity-check a list before importing or processing it.
Common use cases
- Counting rows in a pasted list before pasting it into a spreadsheet.
- Checking how many entries are in a CSV-style list.
- Verifying a script or config file's line count while debugging.
Frequently asked questions
What is the difference between "Lines" and "Non-empty lines"?
"Lines" counts every line break, including blank lines; "Non-empty lines" only counts lines that contain visible characters after trimming whitespace.
Does a trailing blank line count?
Yes, a trailing line break adds an extra empty line to the total count.