How to use the Line Counter
- Paste or type your text in the box (or open a .txt file).
- The counts update instantly as you type.
- Use the numbers to hit your word, character or length target.
About this tool
Count lines, non-empty lines and unique lines in text, code or lists. It is part of the free Text Tools collection on Online Tools Harbor. Everything happens locally in your browser, so it is fast and private.
Frequently asked questions
Is the Line Counter free?
Yes. The Line Counter is completely free to use, with no sign-up and no limits on normal use.
Is my data safe?
Yes. This tool runs entirely in your web browser using JavaScript. Your text is never uploaded to our servers.
Does it work on mobile?
Yes, it works in any modern browser on phones, tablets and computers. No app to install.