Boneyard Tools

Count Words Per Line

Paste or type text to see the word and character count for each line, plus totals and the average words per line. Everything updates as you type.

How to count words per line

  1. Paste or type your text into the box, one entry per line.
  2. Read the per-line table of word and character counts.
  3. Check the totals and average, then copy the labeled results.

Examples

Two short lines

hello world
foo
Line 1: 2 words, 11 chars. Line 2: 1 word, 3 chars. Total: 3 words.

Frequently asked questions

How is a word counted?

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

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, stays part of that single word and is not counted separately.

What does the character count per line include?

It counts every character on the line, including spaces and tabs, but not the line break itself. Blank lines therefore show a count of zero.

How is the average calculated?

The average is the total number of words divided by the number of lines, including blank lines, rounded to two decimal places.

Does it handle Windows line endings and other languages?

Yes. Windows-style line endings are treated the same as standard newlines, and counts are Unicode aware so accented letters and non-Latin scripts work.

Is my text private?

Yes. Everything runs locally in your browser. Nothing you paste is uploaded, logged or stored.

Related tools