Line Counter Online

Count total lines, blank lines, non-empty lines, unique lines, and duplicates. Remove blanks or duplicates with one click.

How to Use

  1. 1

    Paste text

    Paste any text, code, or list — one item per line.

  2. 2

    See statistics

    All line counts update in real-time as you type.

  3. 3

    Clean up

    Optionally remove blank lines or duplicate lines.

FAQ

What does this tool count?

Total lines, non-empty lines (lines with content), blank lines (empty or whitespace-only), unique lines (distinct content), and duplicate lines (repeated content).

Can I remove duplicates?

Yes. Click "Remove Duplicates" to keep only the first occurrence of each unique line. Click "Remove Blanks" to strip all empty lines.