Line Counter
Count lines in any text instantly in your browser.
Tool workspace
Line count
Counting runs in your browser. Nothing you paste is sent to our servers.
How it works
Counting rules: carriage-return/line-feed pairs (CRLF) and bare carriage returns (CR) are normalized to line feed (LF), then text is split on LF. Empty input shows 0—no error. A single non-empty line without a trailing newline counts as 1. A trailing final newline creates an extra empty line (for example, "hello\n" is 2 lines).
Use Example to load sample multi-line text, or Clear to reset. Counting runs entirely in your browser.
Examples
- hello → 1 line
- hello\nworld → 2 lines
- hello\n → 2 lines (trailing newline = extra empty line)
- (empty) → 0 lines
Privacy
FAQ
Is my text uploaded to a server?
No. Line counting runs entirely in your browser. Pasted content is not sent to Nova Engine.
Do I need an account?
No. All published tools work for guests without login.
Does a trailing newline count as another line?
Yes. After normalizing newlines, a final trailing newline creates an extra empty line. Text without a trailing newline does not.
How are Windows and classic Mac newlines handled?
CRLF and bare CR are normalized to LF before counting, so mixed newline styles still produce a consistent line count.
Where can I count words or paragraphs?
Use the Word Counter for words. Paragraph Counter (and other Text Analysis tools) appear in related tools as they ship.