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
- Paste or type your text into the box, one entry per line.
- Read the per-line table of word and character counts.
- 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
Word Counter
Free online word counter. Paste text to count words, characters, sentences, paragraphs and reading time instantly. Works in your browser and stays private.
Character Counter
Count characters, words and lines as you type. See how your text fits Twitter, SMS and meta description limits. Free, instant and private.
Add Line Numbers
Add line numbers to any text online. Set the start value, step, and separator, pad numbers to align, and copy or download the result. Free and private.
Sort Lines
Sort lines of text alphabetically or numerically online. Reverse the order, ignore case, and remove duplicate lines, then copy the result. Free and private.
Bullet List Maker
Turn lines of text into a bullet or numbered list online. Pick dash, asterisk, dot, arrow or numbers, add indent, then copy. Free and private.
Caesar Cipher
Encode and decode text with the Caesar shift cipher. Pick any shift, see the result live, and brute force all 25 shifts. Runs entirely in your browser.