Boneyard Tools

Count Words Per Line

Count Words Per Line breaks your text into lines and reports the word and character count for each one, side by side in a table. It also tracks running totals for words, characters and lines, plus the average words per line. The counts refresh instantly as you type or paste, and blank lines are shown so nothing is hidden.

How to count words per line

  1. Paste or type your text into the box, with one entry per line.
  2. Watch the four summary cards for Lines, Total words, Total characters and Average words per line.
  3. Scan the per-line table below, where each row shows its line number, word count and character count.
  4. Look for rows marked (empty line) to spot blank lines that still count toward the line total.
  5. Click Copy results to grab a labeled list where each row reads like '2 word(s): hello world'.

Examples

Two short lines with a running total

hello world
foo
Line 1: 2 words, 11 chars. Line 2: 1 word, 3 chars. Totals: 3 words, 14 chars, 2 lines, average 1.5 words per line.

A shopping list that mixes words and a quantity

apples
bananas 6
milk
Line 1: 1 word, 6 chars. Line 2: 2 words, 9 chars. Line 3: 1 word, 4 chars. Totals: 4 words, 19 chars, average 1.33.

A blank line counts as a line but adds no words

The quick brown fox
Jumps

Over the lazy dog
Line 3 is empty (0 words, 0 chars). Totals: 9 words, 41 chars, 4 lines, average 2.25 words per line.

Frequently asked questions

How is a word counted?

A word is any unbroken run of non-whitespace characters, so words are separated by spaces, tabs or line breaks. Several spaces in a row still act as a single separator, so 'a b' with two spaces is still two words.

Is punctuation counted as part of a word?

Yes. Punctuation attached to a word, such as the apostrophe in "don't" or a trailing period on "end.", stays part of that single word and is not split off. A standalone symbol surrounded by spaces, however, counts as its own word.

What does the character count per line include?

It counts every character on the line, including spaces and tabs, but not the line break at the end. A blank line therefore shows zero characters, and a line with only spaces reports the number of those spaces.

How is the average words per line calculated?

It is the total number of words divided by the number of lines, counting blank lines, then rounded to two decimal places. Three words across two lines gives 1.5, and four words across three lines gives 1.33.

Are blank lines included in the line count?

Yes. Every newline starts a new line, so an empty line between paragraphs is counted and shown as an (empty line) row with zero words and zero characters. This keeps the line count matching what your editor shows.

Does it handle Windows line endings and other languages?

Yes. A trailing carriage return from Windows-style CRLF endings is stripped, so those lines count the same as Unix newlines. Counting is Unicode aware, so accented letters and non-Latin scripts are handled as normal characters.

Can I copy the results?

Yes. The Copy results button copies a labeled list, one row per line, in the form '2 word(s): hello world'. Paste it into a document or spreadsheet to keep the per-line breakdown alongside your original text.

Is there a length limit?

There is no fixed limit. Because the counting runs entirely in your browser, the practical ceiling is your device memory, and even long pastes update almost instantly.

Is my text private?

Yes. Everything runs locally in your browser. Nothing you paste is uploaded, logged or stored, so confidential lists and drafts never leave your device.

Learn more

Related tools