Docomint

Line Counter

Count the total and non-empty lines in a block of text or code.

🔒 Processed on your device

Useful for a quick sanity check on a CSV export, a config file, or a list someone sent you — paste it in and see exactly how many lines (and how many actually have content) you're working with, without opening it in a spreadsheet or editor.

Example: A pasted CSV export with 500 data rows plus a header row and 3 trailing blank lines shows 504 total lines and 501 non-empty lines.

How it works

  1. Paste your text or code
  2. Lines are counted instantly, on your device
  3. See both total and non-empty line counts

Frequently asked questions

Does this count blank lines?

Yes — the total line count includes blank lines. A separate "non-empty lines" stat is shown if you want the count without them.

Is my text uploaded anywhere?

No — Line Counter runs entirely in your browser using JavaScript/WebAssembly. Your text is never sent to a server.

Does a long line that wraps visually on screen count as multiple lines?

No — only actual line breaks count as a new line, regardless of how many times it visually wraps in the text box.

Related tools