Line Counter
Paste text into the line counter to see how many lines it has, how many of those are not blank, and how many sentences and words it contains. The counts update as you type, which helps with lists, spreadsheet rows, code, poems and any form that limits the number of lines or sentences.
- Lines
- 0
- Non-empty lines
- 0
- Empty lines
- 0
- Words
- 0
- Sentences
- 0
- Longest line (chars)
- 0
Counting lines by eye goes wrong fast once a list passes a few dozen items. Paste it here instead and the totals appear straight away, with blank lines counted separately so gaps in a list do not inflate the number you care about.
How to use the line counter
- Paste or type your text into the box.
- Read the totals for lines, non-empty lines, sentences and words.
- Edit the text and watch the counts change.
- Use the non-empty count when blank lines should not count.
What counts as a line
A line ends where a line break is, the point where someone pressed Enter. Long text that wraps onto a second row inside the box is still one line, because the wrapping depends on the width of the screen, not on the text itself. That is the same rule code editors and spreadsheets use when they number lines.
Blank lines are counted in the total but not in the non-empty count. For a pasted list with gaps between items, the non-empty number is usually the one you want.
How sentences are counted
Sentences are found by end punctuation: full stops, question marks and exclamation marks. Abbreviations such as e.g. or Dr. can push the number up, and a list of items without full stops may count as fewer sentences than it looks. Treat the sentence count as a close estimate and the line count as exact.
Frequently asked questions
How do I count the lines in a text?
Paste the text into the box. The line total appears at once, together with the number of non-empty lines.
Does wrapped text count as a new line?
No. Only real line breaks start a new line. Text that wraps because the box is narrow is still one line.
Can it count sentences too?
Yes. It shows a sentence count based on end punctuation, plus a word count.
How many lines does a sonnet or a haiku have?
A sonnet has 14 lines, a limerick 5 and a haiku 3. The syllable counter can check a haiku's 5-7-5 pattern.