Line Counter
Line, word, byte, character counts and the longest line — wc in the browser.
How to Use
- Paste text or drop a file.
- Stats update as you type.
Text
Or drop a text file
Reads as UTF-8
Stats
Lines
0
Words
0
Chars
0
Bytes (UTF-8)
0
What counts
Words
Non-whitespace runs
Lines
Split on \n
Chars
JS string .length
UTF-16 units.
Bytes
UTF-8 encoded length
Blank lines
Whitespace-only
Longest
Max line chars
Frequently Asked Questions
How are lines counted?
Count of \n + 1 if last char isn't \n (Unix-style).
Blank lines?
A separate counter shows whitespace-only lines.
Common Use Cases
Log analysis
Quickly count entries.
Source stats
Lines of code per file.
Last updated: