← All Tools

Line Counter🔒 100% local

Count lines, empty lines, and characters in text. Useful for code and document analysis.

Input Text

Related Tools

Word CountText StatsCharacter Frequency

Reports six figures for whatever you paste: total lines, non-empty lines, empty lines, total characters, non-whitespace characters and whitespace characters. A line counts as empty when all it holds is spaces or tabs, and a file that ends with a newline gets a final empty line counted. The counting is a single pass over the string in the page.

How to use it

  1. Paste the file, log excerpt or text block you want measured.
  2. Press Count Lines.
  3. Read the line block first, then the character block below it.

Worked example

alpha beta gamma deltabecomesLine Statistics: Total lines: 6 Non-empty lines: 4 Empty lines: 2 Character Statistics: Total characters: 24 Non-whitespace: 19 Whitespace: 5

Six lines with two blank ones. The 24 characters minus the 19 non-whitespace ones leave 5, all of them newlines; there are no spaces in the sample at all.

When to use it

What it does not do