How to use this tool
Paste text to inspect its size and line count. Both spaces and punctuation contribute to the total.
How it works
Character totals count Unicode code points after normalizing line endings to a single newline. Whitespace-free totals remove spaces, tabs and line breaks. Nonempty input has one line plus the number of newline characters.
A QUICK EXAMPLE
Put it into practice.
“A B” contains 3 characters, 2 characters without whitespace, 2 words and 1 line.
Good to know
Other platforms may count UTF-16 units, bytes or visible grapheme clusters. A combined emoji can occupy several code points, so platform-specific limits may differ.
Common questions
Does a trailing newline count as another line?
Yes. A final newline creates an empty final line. Completely empty input has zero lines.