Line Counter
Paste any text and get an instant breakdown: total lines, blank lines, non-blank lines, unique lines, line endings, longest line, and average length. Runs entirely in your browser — your text never leaves the page.
Options
Try
Frequently asked questions
What counts as a blank line?
A blank line is an empty line. With the "Count whitespace lines as blank" option on (the default), lines containing only spaces or tabs are treated as blank too; turn it off to count only truly empty lines.
How are unique and duplicate lines calculated?
Unique counts distinct lines and duplicates are the repeats beyond the first occurrence. You can toggle case-insensitive matching and trimming before deduplication so that lines differing only in case or surrounding whitespace are treated as the same.
What do the line-ending stats tell me?
They detect whether your text uses LF (Unix), CRLF (Windows), or a mix — useful for spotting inconsistent endings that can cause diff noise or cross-platform issues.
Does my text get uploaded?
No. All counting runs in your browser, so your text, logs, or code never leave the page.
Related tools
- Character Counter Real-time character count with and without spaces, plus byte size.
- Text Case Converter Switch between UPPER, lower, Title, Sentence, camelCase, and snake_case.
- Text Compare / Diff Side-by-side diff with added, removed, and changed lines highlighted.
- Remove Duplicate Lines Strip repeating lines from any block of text in a single click.