counter-word

Line counter

Every line break makes a new line, including blank ones. Useful for code blocks, address lists, CSV rows and anything else where the line is the unit.

Your text
Most repeated words

Numbers appear here once you add text.

What counts as a line

A line is everything between two line breaks. Pressing Enter creates one. A blank line counts, because it occupies a line in the file.

This is different from a visual line in a narrow window, where long text wraps without any line break existing in the data. Wrapping does not create lines and is not counted.

Where the line is the unit

Line counts matter more often than word counts in a few specific places.

  • Code — lines of code as a rough size measure, and diff sizes in code review.
  • Data files — CSV and TSV rows, one record per line.
  • Subtitles — caption files cap lines per cue and characters per line.
  • Poetry — lines are the structural unit, and forms are defined by them.
  • Terminal and log output — counting entries or errors.

Common questions

Do blank lines count?

Yes. A blank line is a line. If you need the count of non-empty lines, the paragraph count comes closer, since it ignores empty blocks.

Does wrapped text count as multiple lines?

No. Wrapping is a display behaviour, not part of the text. Only actual line breaks are counted, which is why the number stays the same when you resize the window.

Related tools