Skip to content
Rotina Diária

Line Counter

Count total, non-empty, blank, unique, and duplicate lines. Find the longest line and number your text.

0total lines
0with content
0blank or spaces only
0unique lines
0duplicates
0characters in the longest line
0average characters per line
0total characters
Number lines

Processed on your device. Nothing you type is sent anywhere.

How to use: Line Counter

  1. Paste your text, list, or code.
  2. Instantly see the total, blank, unique, and duplicate lines, plus the length of the longest line.
  3. Open Number lines to generate and copy numbered text.

About this tool

Check how many items are in an email or code list before importing, see how long a log file is, count CSV records, or check a list for duplicates. Lines containing only spaces count as blank, and a final line break—which many editors add—doesn’t create an extra line.

The longest line count can help you check code column limits (80 or 120 characters) and fields with maximum lengths. Everything runs in your browser: nothing you paste or type is sent to a server.

Frequently asked questions

Why is the total different from the number shown in my editor?

Many editors show one extra line when a file ends with a line break. Here, that final line break isn’t counted as a new line—the same approach used by the wc -l command, plus the last line if it has no line break.

How do I remove duplicate lines?

Use Remove duplicate lines to keep the first occurrence of each line in its original order.

Is it really free? Is there a daily limit?

It's free with no daily limits. Processing happens on your device, so there's no per-use cost and no need to limit you.

Does it work on phones?

Yes. The site works in any modern browser on Android, iPhone, Windows, Mac, and Linux—no installation needed.