Line Counter Online
Count lines, words, characters, unique lines, and empty lines in copied text. Useful for logs, snippets, exports, docs, and payload inspection.
Quick answer
This page counts lines, words, characters, unique lines, and empty lines from any pasted text.
It also generates a copyable summary, which is useful for debugging, QA notes, and quick text inspection.
InputPaste any text
OutputCopyable summary report
How to use
- Paste any text into the input box.
- Optionally trim lines before counting.
- Review the stats or copy the generated summary report.
Common questions this page answers
- How many lines are in this text?
- How many words and characters does this text have?
- How many unique lines or blank rows are included?
Example input and output
Input
alpha
beta gamma
alpha
Generated summary report
Lines: 4
Non-empty lines: 3
Empty lines: 1
Words: 4
Characters: 23
Unique lines: 3
FAQ
Does it count blank lines?
Yes. Empty lines are tracked separately so you can see both total lines and non-empty lines.
Can I normalize whitespace first?
Yes. Enable trim to count lines after leading and trailing whitespace is removed.
What does the output box contain?
It contains a copyable summary report built from the current text.