Word and Text Tools
Word and Text Tools › Count words and text › Line counter

Line counter

How do I use a line counter? Counts the lines of text, for lists, data and code.

What it doesCounts the lines of text, for lists, data and code.
Exact ruleLines are separated by line breaks (Windows, Mac or Unix); one line break at the very end does not add a line, and blank lines in the middle count.
Example textapples ⏎ bananas ⏎ ⏎ cherries ⏎
Example result3 words, 25 characters, 1 sentences, 2 paragraphs, 4 lines
LimitsLines that wrap on screen are one line here: only a real line break starts a new one.
Where it runsIn your browser: your text is never uploaded, stored or logged.

Related tools

Word counter Character counter Sentence counter Paragraph counter Letter counter Different words counter Reading time calculator Speaking time calculator

All tools in Count words and text

How to use the line counter

  1. Paste a list, a table or a few lines of code.
  2. Read the line count.
  3. Use the remove duplicate lines tool if you want to count distinct lines.

How it works

Lines are separated by line breaks (Windows, Mac or Unix); one line break at the very end does not add a line, and blank lines in the middle count.

Lines that wrap on screen are one line here: only a real line break starts a new one.