TextStyle4

Line Counter

Count total, non-empty and empty lines.

Example

Input
one
two

four
Output
Lines: 4
Non-empty lines: 3
Empty lines: 1

How to use

  1. Type or paste your text into the box.
  2. Adjust the options if the tool has any – the result updates instantly.
  3. Press Copy result, or “Use result as input” to chain another step.

How it works

Handles Windows and Unix line endings and treats whitespace-only lines as empty.

Frequently asked questions

Is a trailing line break counted?

Yes, a final empty line counts as an empty line.

Is the text I type sent to a server?

No. Conversion runs in your browser and your text is not uploaded.

Related tools

Word Counter

Count words, sentences, paragraphs and reading time as you type.

Uppercase Converter

Convert any text to UPPERCASE instantly.

Lowercase Converter

Convert text to lowercase in one click.

Title Case Converter

Capitalise the first letter of every word.