Skip to content
Jellykit

Line Counter

Count the lines in any text: total, non-empty, blank and unique lines, plus the longest line length. Paste a list, CSV or code. Free online line counter.

Runs in your browser. Nothing is uploaded.

About Line Counter

Line Counter tells you how many lines your text has, how many are blank, how many have content and how many are unique. It also reports the longest line and the average line length in characters.

Use it to check a list before importing it, confirm the row count of a CSV, or see how many distinct entries a pasted column contains.

How to use Line Counter

  1. Type or paste your text into the input box. Press Sample to see an example.
  2. The result appears instantly as you type.
  3. Copy the result, or press Use as input to chain another transformation.

Frequently asked questions

Is a trailing newline counted?

Yes. A final line break creates one more (empty) line, which shows up under Empty lines.

Are unique lines case-sensitive?

Yes, and leading or trailing spaces are ignored when comparing.

Is Line Counter free and private?

Yes. Line Counter is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.

See all text tools →