Line Count Tool
Count lines, words, characters, and more, live as you type.
Everything is counted live in your browser as you type. Nothing you type is sent anywhere.
Need the opposite? Word Count Tool
What is Line Count Tool?
Paste or type text and see its line count instantly, alongside words, characters, and estimated reading time. It's the same counting engine behind Word Count Tool, with line count front and center for checking a file against a line-limit or estimating a script's size. Counting happens live as you type, entirely in your browser. That's handy for checking a log excerpt, a config file, or a code snippet against a line-count limit without opening it in an editor just to see the line number in the gutter.
How to Use the Line Count Tool
- 1
Paste or Type Your Text: Enter the text, log excerpt, or code snippet you want measured.
- 2
Read the Counts Instantly: Line, word, and character counts update automatically as you type.
How It Works
Line count is the number of line breaks in your text plus one, the same way a text editor's gutter numbers lines, whether or not the last line ends with a newline character. Blank lines (two consecutive line breaks) count as their own line, since they take up a real line in the file. Alongside the line count, the tool also shows word and character counts from the same input, so you can sanity-check a file's size from more than one angle at once.
Example
Pasting:
first line
second line
third line
counts as 3 lines. Adding a blank line between "first line" and "second line" makes it 4 lines, since the blank line is itself a line.Common Use Cases
Checking a config file, log excerpt, or code snippet against a line-count limit, estimating a script or CSV's row count before importing it somewhere, or confirming a pasted list has the number of entries you expect.
Frequently Asked Questions
Common questions about Line Count Tool.