Line Counter_

Count lines in any block of text. Runs entirely in your browser — nothing you paste here is uploaded or logged.

local://toolkit.codes/text-tools/line-counter
0
Lines
0
Non-empty
0
Unique
0
Words
0
Characters
UTF-8
Ready
100% LOCAL

100% client-side — nothing you enter leaves your browser. Free, no signup, no tracking.

How to use

  1. 01Paste any text, log excerpt, or list — the line counter runs live while you edit.
  2. 02Read total lines, non-empty lines, and unique lines side by side; the unique count is a quick duplicate check.
  3. 03Mixed line endings (Windows CRLF, Unix LF, old-Mac CR) are all recognized.

About this line counter

A line counter answers a deceptively simple question — how many lines does this text have? The subtle part is the last line: by the rule used here (and by most editors), a single trailing newline ends the final line rather than starting an empty new one, so one⏎two⏎ is two lines, not three. Blank lines in the middle do count, and the non-empty tile excludes them.

The unique count collapses exact duplicates, which makes this a fast sanity check on exports and lists before deduplicating for real. Counting happens entirely in your browser — paste log files or customer lists without anything leaving your machine. Word and character totals come along for free.