Lines are the unit of a log, a poem, a CSV, and a diff. This page counts them, counts how many are blank or whitespace-only, and reports the longest line in characters. “Odd socks in the dryer.” is 1 line, 0 blank, longest 23. The period is one of those 23.
A blank line is a line. “Odd socks”, then an empty line, then “in the dryer.” is 3 lines, 1 blank, longest 13, because “in the dryer.” is 13 characters and “Odd socks” is 9. The empty line adds to the line count and to the blank count. It does not add to the longest length.
Length is code points, the same character count the character counter uses, measured per line and not for the whole paste. Words are not counted. A wrapped sentence in a text box is still one line if you never pressed return. Windows and Unix newlines are both splits, so a carriage return does not inflate the count.
Odd socks in the dryer.
1 line, 0 blank, longest 23. Add a blank line between two halves and the count becomes 3 lines, 1 blank.
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
Yes. It increments lines and blank. “Odd socks”, a blank line, and “in the dryer.” is 3 lines and 1 blank.
The most code points on a single line. For the one-line sentence it is 23, the same as the character count.
No. This page does not count words or sentences. The text analyzer reports those next to the line count.
No. Only newline characters split lines. A long sentence that wraps on screen is still one line.
Yes. A line whose trim is empty is blank. It still counts toward the line total.