Skip to content
ToolInstant

Line Counter

Local

Count the lines in any text or list: total lines, non-empty lines, blank lines and the longest line. Works with Windows, Mac and Linux line endings. Private.

Loading tool…

Ready · Runs in this browser · nothing uploaded

Text tools · Free · No upload · No sign-up

How to use the line counter for free

  1. 1Paste your text, list or code.
  2. 2See total, non-empty and blank line counts instantly.
  3. 3Find the longest line and its line number.

Also useful for: line counter, count lines online, number of lines in text, count rows in list, blank line counter.

  • Completely free, no account needed
  • Your data never leaves your device
  • Works on desktop and mobile

Frequently asked questions

Is this line counter free?+

Yes. Every tool on ToolInstant is free to use with no sign-up and no limits on how often you use it.

Is my data uploaded anywhere?+

No. Everything is processed inside your browser using JavaScript. Your input never leaves your device.

Does it work on mobile?+

Yes. ToolInstant works in any modern browser on phones, tablets and desktops.

Why is my count one more than wc -l?+

wc -l counts line breaks. If your text ends with a line break, we count the empty last line too, and tell you the wc -l figure.