Count the total, non-empty, and empty lines in your text instantly. This free browser-based line counter supports Windows, Unix, and Mac line endings without sending your text to a server.
The Count lines tool counts lines in text instantly and privately in your browser. It shows total lines, non-empty lines, and empty lines without changing the original text.
The counter recognizes Windows (CRLF), Unix/Linux (LF), and classic Mac (CR) line endings. Empty input contains zero lines, and a final line break does not create an unexpected extra line.
Count empty lines is enabled by default. Enable Ignore whitespace-only lines when lines containing only spaces or tabs should be left out of the counts.
The text Hello world, This is a test, a blank line, and Another line contains 4 total lines, 3 non-empty lines, and 1 empty line.
Results update as you type or paste. Your text remains in your browser and is not uploaded to a server.