Paste any text and see how many lines it has, how many are empty, and how long the longest one is. Counts update as you type.
A line count answers practical questions: how many rows will this paste into a spreadsheet, how many records came back from that export, does this log match the expected number of entries. Filled lines are usually the number you want, since a blank line at the end or between sections is not a record.
The longest line is useful when something has a line limit: code style rules, subtitles, CSV imports, or a text field that cuts off. To work with the lines instead of counting them, the tools below can remove duplicates, sort them or number them.
Open the file, copy all the text and paste it here. On Linux or macOS, the command wc -l counts line breaks instead, so it can differ by one.
Yes. Total lines includes them. "Lines with text" leaves them out, and "Empty lines" shows the difference.
Most editors show an extra empty line after a final line break. This counter does not treat that as a line.