Line Counter

Line Counter

Count total, blank, and non-blank lines instantly as you type.

Total Lines: 0 Non-Blank Lines: 0 Blank Lines: 0 Words: 0

Counting lines by hand — in a list, a log file, a script, or a document with a strict length requirement — is tedious and easy to get wrong. This text line counter gives you an instant, accurate breakdown the moment you paste your text.

Use the line counter online with no sign-up, no downloads and no limit on how much text you can check — and nothing you paste ever leaves your browser.

How to Use the Line Counter

  1. Type your text into the box, or paste it in.
    text input box
  2. Watch the four counts under the box update as you go: Total Lines, Non-Blank Lines, Blank Lines and Words.
    four live counts
  3. Click Copy to take the text back out, or Paste to pull text straight from your clipboard.
    copy and paste
  4. Click Clear to empty the box and start again.
    clear the box

Because you count lines online here rather than in an editor, every count updates in real time as you type, with no separate calculate step.

What Is a Line Count?

A line count is the number of lines in a piece of text, where a “line” is whatever sits between one line break and the next. To count lines of text accurately you therefore have to count line breaks, not the rows you see on screen. Unlike a word or character count, it measures structure — how the text is broken up — rather than length.

This tool breaks that structure down into four numbers:

Common Use Cases for a Line Counter Tool

Line Counter Do’s & Don’ts

DoDon’t
Use Non-Blank Lines when you want to ignore spacer lines.Assume Total Lines and Non-Blank Lines will be the same number.
Paste code in as it is — the count follows the real line breaks.Mistake a line that visually wraps on screen for a second line.
Check the line count as well as the word count on resumes and letters.Ignore trailing empty lines — they still count towards the total.

Line Counting: What You Need to Know

Standard Line Count Guidelines by Document Type

Line-count expectations vary a lot by the type of writing. Some rough standards:

ContextTypical Line Guidance
Resume (1-page)Approximately 40-50 lines (varies with font size and margin).
Cover letterGenerally not more than 40-45 lines per page.
Sonnet (poetry)Exactly 14 lines by definition.
HaikuA traditional 3-line verse in 5-7-5 syllables.
Git commit messageTypically wrapped at 72 characters per line for ease of reading on terminals.
CSV/data file rowOne line per record, plus the header row if the file has one.

These are guidelines rather than rules — always check against whatever actually governs the job in hand, whether that is a job advert, a house style guide or a platform’s formatting limits.

Frequently Asked Questions

What counts as a line in this tool?

Any text that ends with a line break — anything you end by pressing Enter or Return — whether it is a full sentence or a single word.

Does an empty line still count?

Yes, towards Total Lines and Blank Lines. It is the only one of the four counts left out of Non-Blank Lines.

Does the tool count wrapped text as multiple lines?

No. A long line that visually wraps onto a second row on your screen is still one line — the count is decided by line breaks, not by how the text looks.

Can I use this for counting lines of code?

Yes. Paste in any code snippet and it counts every line exactly as it appears, including the blank lines you use to separate functions or blocks.

Will the line count change if I paste the same text on a different device?

No. The tool reads Windows, Mac and Linux line breaks the same way, so the count stays consistent wherever the text came from.

Does deleting a blank line at the end of my text change the word count?

No. Blank lines contain no words, so removing one changes your line counts but leaves the word count exactly where it was.