Count lines, characters, words, bytes — paste text or upload a file
📁
Drop a file here or click to upload
Supports .txt, .csv, .json, .js, .py, .html, .css, .md and more
0
Lines
0
Words
0
Characters
0
Bytes
Detailed Statistics
Characters (no spaces)0
Sentences0
Paragraphs0
Non-empty lines0
Longest line0 chars (line 0)
Avg word length0
Avg line length0
Estimated file size (UTF-8)0 B
Frequently Asked Questions
How do I count lines in my text?
Simply paste your text into the text area or upload a file. The tool instantly shows line count, word count, character count, and byte size.
Does the line counter support file uploads?
Yes. You can upload .txt, .csv, .json, .js, .py, .html, .css and many other text-based file formats.
What's the difference between characters and bytes?
Characters count individual symbols. Bytes count the actual storage size — ASCII characters use 1 byte, while Unicode characters (like emojis) may use 2-4 bytes.
How is the longest line determined?
The tool scans all lines and reports the one with the most characters, showing its line number and length.
Is my text private?
Yes. All processing happens in your browser. Nothing is sent to any server.
Can I count words and sentences too?
Yes. The tool provides word count, sentence count, paragraph count, and average word length.
What file size limit is supported?
Files up to 10MB are supported. Larger files may slow down depending on your device.
Does it count empty lines?
Yes, empty lines are included in the total line count. The tool also shows non-empty line count separately.