Skip to content
OddsockLocal
Local
Source text
Words15
Characters66
Sentences2
Reading time5 sec
Words15
Characters66
Sentences2
Reading time5 sec
15 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Paste the text, preserving the line breaks.
  2. Read lines for the total, including blanks.
  3. Read blank for whitespace-only lines.
  4. Read longest before you impose a line-length limit.

What is Line counter?

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.

Read more

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.

Use cases

  • A developer checking how many lines a log paste contains, blanks included.
  • A poet counting lines and the longest line before a layout.
  • A reviewer finding a 200-character line that will blow a linter.
  • A student separating real rows from the blank lines a conversion inserted.
  • An editor confirming a one-line caption stayed one line.

One sentence, no return key

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.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

Yes. It increments lines and blank. “Odd socks”, a blank line, and “in the dryer.” is 3 lines and 1 blank.