Line Counter
Count total lines, blank lines, non-empty lines, words and characters in real time. Works with plain text or source code.
Lines
0
Non-empty
0
Blank
0
Words
0
Characters
0
No spaces
0
What is Line Counter?
Counts the number of lines in any text, separating empty lines from lines with content. Handy for checking the size of logs, lists, source code, CSV data or any pasted text file.
How to use
- Paste your text in the main field.
- See live counts: total lines, content lines and empty lines.
- Use the option to strip blank lines if you want to clean the text.
Frequently asked questions
How are blank lines defined?
A blank line is any line whose contents are empty after trimming whitespace (spaces and tabs).
Does it work for source code?
Yes — paste any source file and the counter behaves like the Unix wc command.
Are tabs counted as characters?
Yes — every character including tabs and spaces is counted in the total. The "no spaces" stat strips all whitespace.
Related tools
Word Counter
Count words, characters, sentences and paragraphs in any text. Includes reading time estimate.
Character Counter
Count characters and check the limits for Twitter, Instagram, LinkedIn, TikTok and other social networks.
Duplicate Line Remover
Remove duplicate lines from a list. Options to ignore case, trim spaces, sort and keep only uniques.