This line counter reports the exact number of lines in your text or code as you type or paste. Every line break adds to the total, so it works equally well for prose, bulleted lists, CSV rows, log files and source code.
It is the quickest way to answer “how many lines is this?” without pasting into an editor and scrolling to the bottom.
How to use the line counter
- Paste your text, list or code into the box.
- Read the line total at the top — it updates instantly.
- Also see words and characters if you need them.
- To count only non-empty lines, run the text through Remove Blank Lines first, then paste it back here.
What counts as a line
A line is any run of text ending in a line break, plus the final line if it has no break after it. Empty lines are counted too, because each blank line is still a line break in the file. If a single long sentence wraps visually on screen but has no actual line break, it counts as one line.
Common uses for a line count
- Developers — check how many lines a snippet, config or data file has.
- Data work — count rows in a pasted CSV or list before importing.
- Writers & students — meet line-based limits for poems, scripts or forms.
- List building — confirm how many entries are in an email or keyword list.