About counting lines
This tool counts the lines in your text — the total, how many are non-empty — plus the word and character counts. You can also number every line. It runs entirely in your browser.
How Line Counter works
How to use it
- Paste your text or list.
- Read the line, word and character counts.
- Tick numbering to add a number to each line.
How it works
The text is split on line breaks to count lines, and non-empty lines exclude blank ones. Numbering prefixes each line with a right-aligned number.
Common uses
- Count lines in a file
- Count items in a list
- Number lines of text
- Check log line counts
- Count non-empty lines
- Reference list positions
- Count words and characters
- Prepare numbered output
Frequently asked questions
How do I count lines?
Paste the text and the line count is shown instantly.
Does it count blank lines?
It shows both total lines and non-empty lines.
Can I number the lines?
Yes — tick the numbering option.
Is my text uploaded?
No — it runs in your browser.
Does it count words too?
Yes — words and characters as well.
Can I copy the numbered version?
Yes — use the copy button.
Is it free?
Yes — completely free with no sign-up.