100% private • Runs in your browser • No server upload

Line Counter

Free online line counter. Count total lines, non-empty lines, empty lines, and paragraphs. Supports LF, CRLF, and CR line endings. 100% private.

What this Line Counter does

This free online line counter gives you a complete breakdown of your text's line structure — total lines, non-empty lines, blank lines, and paragraph count. It correctly handles all three line ending formats (LF, CRLF, CR) so you get accurate results whether your text comes from Linux, Windows, or classic Mac files. Paste your text or drop a file to see instant statistics.

  1. 1.Paste your text into the editor, or drag and drop a text file (any format with text content works).
  2. 2.View the line count breakdown instantly — total lines, non-empty lines, and blank lines are displayed in real time.
  3. 3.Check the paragraph count to see how your text is organized into paragraph blocks separated by blank lines.

Frequently asked questions

Is my text uploaded to a server?

No. All line counting is performed entirely in your browser. Your text never leaves your device — no uploads, no server calls, complete privacy.

Does it handle different line ending formats?

Yes. The counter normalizes all three formats before counting: LF (\n, Unix/Linux/macOS), CRLF (\r\n, Windows), and CR (\r, classic Mac OS). You get accurate counts regardless of where your text originated.

How are paragraphs counted?

Paragraphs are detected by blank-line separation. One or more consecutive non-empty lines, separated from the next block by at least one blank line, form a single paragraph. This matches the standard word-processor definition.

Does it work with source code?

Yes. The line counter works with any text content — source code, configuration files, log output, or plain text. It correctly counts lines in Python, JavaScript, HTML, or any other language.

Why is the blank line count useful?

Blank lines affect readability and formatting. Excessive blank lines waste space in documents, while missing blank lines make code hard to read. The count helps you maintain consistent, professional formatting.

My text was copied from a Windows document. Will the count be wrong?

No. The counter automatically detects and normalizes Windows CRLF line endings, so text copied from Word, Notepad, or any Windows application is counted correctly.