Username Generator
Generate available-looking usernames from word patterns.
Count total, non-empty and unique lines in any list or file.
0
lines in total
Longest line
—
The Line Counter reports how many lines a block of text contains, along with how many are non-empty, how many are distinct, and which is the longest. It is the quickest way to check that an export, a log or a pasted list is the size you expected it to be.
A line count is the fastest sanity check there is on a pasted list. Did the export give you all 4,000 rows, or did it stop at 1,000? Did the copy from the terminal pick up the blank line at the end? This counter answers all of that at once rather than making you scroll to the bottom and read a row number.
Four figures are reported: total lines, lines that contain something other than whitespace, distinct lines once duplicates are collapsed, and the length of the longest line. That last one matters more than it sounds — it is usually how you find the one malformed row in a CSV that is breaking an import.
Total lines, non-empty lines, unique lines and the longest line length are reported together rather than one at a time.
Windows CRLF, Unix LF and old Mac CR are normalised first, so the same file gives the same count wherever it came from.
A single newline at the end of a file is not counted as an extra empty line, which matches what wc -l and your editor report.
The longest line is shown in full — usually the one row that is breaking a CSV import.
The unique count tells you immediately whether a list has repeats, without running it through a separate tool.
Any list, log, CSV or block of code. Windows, Mac and Unix line endings are all handled.
Total, non-empty, unique and longest-line figures appear together under the box.
Switch on "ignore empty lines" when trailing blank lines from a copy-paste are skewing the total.
The longest line is shown in full, which is normally the row that is breaking your import.
Both are normalised before counting. A CRLF pair from Windows counts as one line break, exactly as a lone LF from Unix or macOS does, so the same file gives the same count whichever system it came from.
By default a single trailing newline at the very end of the text is not counted as an extra empty line, which matches what wc -l and most editors report. Switch off "ignore empty lines" to see the raw split instead.
Two lines are the same when their content matches exactly, including case and leading or trailing spaces. Trim the text first if you want to ignore indentation differences.
Yes. It counts physical lines, which is the usual meaning of "lines of code". It does not try to exclude comments or blank lines from the total, though the non-empty figure gives you the count with blanks removed.
What people who use the Line Counter think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the Line Counter. It takes half a minute and no account.
Write the first reviewGenerate available-looking usernames from word patterns.
Add indentation to every line, in spaces or tabs.
Dictate text with your microphone and edit it here.
Wrap every line with text before and after, in one pass.
Break text into chunks by delimiter, length, lines or words.
Draw random letters, with or without vowels and repeats.
Strip emoji and their invisible joiners out of any text.
Rank every word and phrase in your text by how often it appears.