Paste any text, code, or list and instantly count total lines, blank lines, and duplicate lines — plus clean up your text with one click.
Perfect for checking log files, email lists, code snippets, or any text where line count and structure actually matter.
Type or paste your text below and see line statistics update instantly.
Whether you're cleaning up a data file or reviewing code, knowing your line structure matters.
See total, blank, non-empty, and duplicate line counts update as you type or paste.
Instantly remove blank lines or duplicate lines without manually scanning your text.
Everything runs in your browser — your text is never uploaded to any server.
A line counter is useful far beyond simple writing — developers use it to check code file length and spot duplicate imports or entries, marketers use it to clean up email or contact lists, and data teams use it to quickly sanity-check CSV-style text before processing it further.
The duplicate and blank line detection features in this tool make it especially useful for tidying up lists before importing them elsewhere, since duplicate rows and stray blank lines are some of the most common data-quality issues.
Analyze and clean your text in three simple steps.
Add any text, code, or list into the editor — line numbers appear automatically.
Check total lines, blank lines, duplicates, and your longest line at a glance.
Remove blank or duplicate lines with one click, then copy your cleaned-up text.
Common questions about this line counting tool.