Line Counter

Count total, blank, unique and duplicate lines.

Total lines5
Non-empty lines4
Blank lines1
Unique non-empty lines3
Duplicate lines1
Longest line6chars

Runs entirely in your browser — nothing you enter is uploaded.

About this tool

Count lines in logs, CSV exports, lists and code. See blank lines, duplicates and the longest line.

How to use the Line Counter

  1. Enter the text.
  2. The result updates instantly, with the working shown underneath.
  3. Use Copy to grab a result, or Reset to start again.

How it works

Text is split on line breaks (both Windows CRLF and Unix LF).

Frequently asked questions

Does a trailing newline count as a line?

Yes, an empty final line is counted as blank.