Text

Line Counter

Count total lines, blank lines, non-empty lines, words and characters in real time. Works with plain text or source code.

Lines

0

Non-empty

0

Blank

0

Words

0

Characters

0

No spaces

0

What is Line Counter?

Counts the number of lines in any text, separating empty lines from lines with content. Handy for checking the size of logs, lists, source code, CSV data or any pasted text file.

How to use

  1. Paste your text in the main field.
  2. See live counts: total lines, content lines and empty lines.
  3. Use the option to strip blank lines if you want to clean the text.

Frequently asked questions

How are blank lines defined?

A blank line is any line whose contents are empty after trimming whitespace (spaces and tabs).

Does it work for source code?

Yes — paste any source file and the counter behaves like the Unix wc command.

Are tabs counted as characters?

Yes — every character including tabs and spaces is counted in the total. The "no spaces" stat strips all whitespace.

Related tools