Line Counter
Count lines, paragraphs, characters, and words. Useful for code review, log files, CSV row counts, and submission limits.
Type, see line count live
Lines are split on \n (newline). Paragraphs are groups of consecutive non-empty lines.
one two three four
Lines: 5 Paragraphs: 2 Words: 4 Characters: 18 Bytes (UTF-8): 18 Sentences: 1 Reading time: 1 sec
What you'll use this for
Anywhere line count is the answer — code review, log analysis, CSV row counts, and submission-line limits.
Code line counts
Get a quick LOC count for a snippet, file, or pull-request diff before review.
Log analysis
Count log lines after filtering — how many errors, how many warnings, how many entries.
CSV inspection
Quickly check the row count of a CSV (minus the header line) before importing.
Content limits
Stay under platform line-limits for textarea inputs, code comments, and notes.
How to count lines
Paste your text
Drop it into the left editor. The line counter updates instantly.
Watch the stats
Line count headlines the strip below the editor. Paragraphs, words, and characters round it out.
Auto-count
Leave auto-count on for live updates as you paste or type.
Copy or download
Save the full breakdown as .txt or copy to clipboard.
Frequently asked questions
Lines are split on the newline character (LF, \n). Carriage returns (CRLF, \r\n) are treated as the same line break. Empty trailing newlines still count as a line.
A line is delimited by a single newline. A paragraph is a block of text separated from the next by one or more blank lines. So a 10-line list with no blank lines is one paragraph, 10 lines.
Yes. No signup, no limits, no ads. Runs entirely in your browser.
An empty input shows zero lines. As soon as you have one character (without a trailing newline) you have one line. A trailing newline adds one to the count — wc -l on the CLI behaves a little differently, only counting terminated lines.
The editor handles up to several megabytes comfortably. For really large logs (tens of MB) a CLI tool like wc -l is faster and won't fight the browser's text rendering.
About line counting
Lines feel obvious but have a few gotchas. Different operating systems and editors use different line-ending conventions, and not every tool agrees on whether the trailing line counts.
Line endings
- LF (
\n) — Unix, macOS, Linux. - CRLF (
\r\n) — Windows, HTTP headers, SMTP. - CR (
\r) — classic Mac (pre-OS X).
This counter splits on \n only. CRLF endings still count once per line (the \r is treated as part of the line content).
Lines vs paragraphs
A paragraph here is a run of one or more non-blank lines separated from the next run by at least one blank line. This is the Markdown convention. If your text has no blank lines, paragraph count equals 1.