Text Tools Runs in your browser Free · no account

Line Counter

The line counter reports how many lines a block of text contains, separating total lines from non-empty lines and unique lines. It is built for working with lists, log extracts and exported data rather than prose.

Lines 0 characters
Counts

Your result will appear here.

Not sure where to start? Use Load example.

Results update automatically and are calculated on your device. Nothing you type is sent to a server.

Runs in your browser. Processing happens entirely in your browser. Nothing you enter is sent to Delimiter.live.

How to use the Line Counter

  1. Paste your list, log extract or exported column into the input box.
  2. Read the total line count, then the non-empty and unique figures beneath it.
  3. If the unique count is lower than the total you have duplicates — use the duplicate line remover to strip them.

Example

Input
alpha
bravo

alpha
Output
Total lines: 4
Non-empty lines: 3
Unique lines: 2

Common use cases

  • Confirming that an export contains the number of rows you expected.
  • Checking a list of email addresses, SKUs or URLs before importing it.
  • Counting log entries copied out of a terminal.
  • Spotting duplicates quickly by comparing total and unique counts.

Limitations and things to watch for

  • Windows (CRLF), Unix (LF) and classic Mac (CR) line endings are all recognised and counted identically.
  • A trailing newline at the very end of the text does not create an extra empty line, which matches how command-line tools such as wc -l behave on well-formed files.

Frequently asked questions

Are blank lines counted?
They are included in the total line count and excluded from the non-empty count, so you can see both figures side by side.
Does it handle Windows line endings?
Yes. CRLF, LF and CR are all treated as a single line break, so a file copied from Windows and one from Linux give the same result.
What does the unique line count mean?
It is the number of distinct lines after exact, case-sensitive comparison. Comparing it to the total tells you how many duplicates the list contains.

Share this tool