Blank and non-empty lines
See total lines, rows containing text and empty or whitespace-only rows at the same time.
Count every line in text, separate blank and non-empty lines, and see words, characters, paragraphs, duplicate rows and estimated code lines instantly.
Paste text or open a small plain-text file. The counters, numbered preview and useful cleanup actions update locally as you type.
Your text stays in this browser.
Your numbered lines will appear here.
A line ends at a line break. This counter normalizes common Windows and Unix line endings, then reports total, non-empty and blank lines separately. If the final character is a line break, the empty row after it is counted because it is a real additional line position.
The main total stays prominent, while the supporting numbers explain what is actually inside a pasted document, list or code sample.
See total lines, rows containing text and empty or whitespace-only rows at the same time.
Check common writing-length measures alongside the line count without moving to another page.
Trim each row, remove blank rows or keep only the first occurrence of duplicate non-empty lines.
Ignore blank and common comment-only rows for a quick estimate; use a language-aware analyser for formal software metrics.
Line counters differ mainly in how they handle empty rows, whitespace and comments. These rules make the result repeatable.
Every row separated by a line break, including empty rows and a trailing empty row after a final line break.
A row containing only spaces or tabs is blank; any other visible content makes it non-empty.
Repeated non-empty rows are compared after trimming their outer spaces. Blank rows are not treated as duplicates.
A lightweight estimate excludes empty rows and rows beginning with common comment markers such as //, #, -- and %.
Long text may wrap onto several visible rows inside the box, but it remains one line until it contains an actual line break. The code count is intentionally a quick estimate and does not parse every programming language, template or multiline string.
These public references document the browser control, text splitting and Unicode boundaries behind the counter.
Reviewed 29 July 2026Answers about blank rows, wrapped text, Word documents, code, Bengali text, files, duplicates and privacy.
One line is the text between two line-break characters. A visually wrapped sentence is still one line unless Enter or another actual line break was inserted.
Yes. Total lines includes blank and whitespace-only rows. Separate non-empty and blank figures let you choose the number relevant to your task.
A line break ends the current row and starts the next one. If nothing follows it, that new row is empty but still exists in the text structure.
Yes. Paste the text into the box. Paragraph and manual line breaks normally transfer, but visual page wrapping does not become a text line.
Yes. Line breaks work the same for Bengali, English and mixed text. Character totals are designed to handle Unicode text, although visually combined marks can differ from perceived letters.
Yes. Open a plain-text file smaller than 2 MB, including common TXT, CSV, Markdown, JSON and source-code extensions. The file is read only in your browser.
It excludes blank rows and common comment-only rows for a quick estimate. It is not a full parser, so project-level or contractual code metrics should use a language-aware tool.
No. Counting, preview and cleanup run in your browser. The page does not send the pasted text or opened file to a server.