How to use it
- Paste or type your text in the box, or open a .txt file from your device.
- Read the total lines, lines with text and blank lines in the first tiles.
- Check the paragraph count to see how many blocks of text there are.
- Use Copy summary to copy every count as a plain text block.
Lines, paragraphs and wrapped lines
- A line ends at a line break. Text that wraps onto the next row because the box is narrow is still one line, so resizing the window never changes the count.
- A paragraph is a block of lines with text, separated from the next block by at least one blank line.
- A blank line is empty or holds only spaces or tabs.
Line endings
Windows ends lines with a carriage return and a line feed (\r\n), Linux and macOS use a line feed (\n), and classic Mac OS used a carriage return (\r). Each counts as one line break here, and a text that mixes them is counted the same way.
The total is the number of line breaks plus one, so text that ends with a line break has an empty last line. Tools that count line break characters instead report one less.
Uses for a line counter
- Lists: check how many items a list has, one per line.
- CSV data: each row is usually one line, but a quoted field can contain a line break, so the row count can be lower than the line count.
- Logs: count entries in a log that writes one entry per line, and use the blank lines figure to spot gaps.
- Poems and lyrics: count lines, and stanzas, which appear here as paragraphs.
- Code: get a quick count of lines in a snippet, blank ones included.
Notes
- Empty text has 0 lines. Any text, even a single space, has at least 1.
More text counters
- Character CounterCharacters with and without spaces, platform limits and SMS segments.
- Word CounterWords, unique words, your most used words and reading time.
- Sentence CounterSentences, average sentence length and the longest sentence.
- Reading Time CalculatorReading and speaking time at speeds you can change.
Frequently asked questions
Does wrapped text count as more than one line?
No. Only a line break starts a new line, so text that wraps on screen stays one line however narrow the box is.
Do blank lines count?
They count toward the total, and the blank lines figure shows how many there are. A line with only spaces or tabs is treated as blank.
Why does another tool show one line fewer?
Text that ends with a line break has an empty last line here. Tools that count line break characters instead of lines report one less for that text.
Does it work with Windows line endings?
Yes. \r\n, \n and \r each count as one line break, even when a text mixes them.
Can I count rows in a CSV file?
Paste the CSV text and read the line count, then subtract 1 for a header row. A quoted field with a line break inside it spans more than one line.
