ToolBoxAI LogoToolBoxAIFree tools. Smarter work.

Free Online Line Counter

Count total lines, non-empty lines, blank lines, words and characters in text. The counting runs in your browser.

Lines

0

Non-empty lines

0

Blank lines

0

Words

0

Characters

0

Characters without whitespace

0

Line breaks include Windows (CRLF), Unix (LF) and older Mac (CR) formats. An empty input is counted as 0 lines; a final newline creates an additional empty line.

Advertisement

How to count lines in text

  1. Paste text from a document, code editor, email or spreadsheet into the text box.
  2. Read the total line count and the separate counts for blank and non-empty lines.
  3. Use the word and character totals when preparing content for forms or editors.
  4. Clear the input or load the sample to start another count.

Frequently asked questions

Are blank lines included?

Yes. The total includes empty lines between text. Blank lines are also shown separately.

Does this tool upload my text?

The line-counting calculations in this page run in your browser and this page does not send the text to an application API.

Why can a trailing newline change the count?

A line break at the end of text separates the last visible line from an empty line after it. This tool counts that trailing empty line.

Advertisement