Does this count empty lines?
Yes. Every newline creates a new line, including blank lines. This matches the behavior of wc -l on Linux and the line count in VS Code.
Line Counter counts every line in your text or code, including empty lines, giving you an instant total that matches what editors like VS Code and Sublime Text report. Developers use it to measure code file size, data engineers use it to count CSV rows, and DevOps engineers use it to count log entries. Paste any content and get the line count in milliseconds — no upload required.
Lines are defined by newline characters ( on Unix/Linux/macOS and on Windows). The tool correctly handles both line ending formats, so pasting content from any operating system produces an accurate count that matches VS Code, nano, wc -l, and other standard tools.
Yes. Every newline creates a new line, including blank lines. This matches the behavior of wc -l on Linux and the line count in VS Code.
Yes. The tool normalizes both (Windows) and (Unix/macOS) line endings before counting, so the result is always accurate regardless of source.
Yes. The tool handles large text blocks efficiently. For very large files (millions of lines), paste a manageable excerpt or use a command-line tool like wc -l.
Completely private. The tool runs entirely in your browser. Your code and data never leave your device.
Nearly identical. The tool counts newline-separated lines including empty ones, just like wc -l.
Yes, free forever. No account, no limits.
Tool workspace
Free online line counter — instantly count lines in code, log files, CSV data, or any text. No upload, no login, runs entirely in your browser.
Input
line one line two line three
Output
3 lines