1. Paste, type, or upload text
Add a list, log, CSV-style row set, code snippet, or plain-text document. You can also upload a .txt file.
Paste text, lists, logs, CSV rows, or code to instantly count total, non-empty, blank, unique, and duplicate lines, plus longest and average line length.
Runs in your browser for fast counting. Avoid pasting highly sensitive text into any online utility.
Open another TextBases tool with the current text carried into the next workspace. The next tool opens in a new tab so this text stays here.
Check line structure instantly without changing the text you paste.
Add a list, log, CSV-style row set, code snippet, or plain-text document. You can also upload a .txt file.
Review total, non-empty, blank, unique, and duplicate lines together with the longest line and average line length.
Copy the current result or download a text summary when you need the measurements for cleanup, QA, reporting, or another editing workflow.
The counter separates row quantity, empty rows, repeated content, and line length so the result is easier to interpret.
Total Lines includes every row created by a line ending. Non-Empty Lines contains at least one non-whitespace character. Blank Lines includes empty rows and rows made only of spaces or tabs.
Unique Lines counts distinct non-empty rows by exact text. Duplicate Lines counts repeated non-empty occurrences beyond the first copy, while blank rows are excluded from duplicate analysis.
Line length counts characters inside each row, not newline characters. Average Line Length includes blank rows as zero-length lines so it reflects the full pasted structure.
Line-level metrics help when rows represent records, tasks, log entries, or source lines.
Check how many rows were pasted, spot blank separators, and estimate how much repeated content needs cleanup before sorting or deduplication.
Measure log size by row count, identify blank lines introduced during copying, and compare repeated entries without opening a full editor.
Use total lines and line-length metrics for a quick structural check of source snippets, configuration blocks, or generated text.
The counter recognizes Windows CRLF, Unix or Linux LF, and classic CR line endings. When text is not empty, each separated row counts as a line.
Yes. Blank rows count toward Total Lines. A row containing only spaces or tabs is treated as a blank line, while Non-Empty Lines counts rows that contain visible text or other non-whitespace characters.
Yes. If the text ends with a line break, the empty row after that final break is counted as a blank line. This matches the visible row structure of the pasted text.
Unique Lines counts distinct non-empty lines using their exact text after line endings are normalized. Duplicate Lines counts repeated non-empty occurrences beyond the first copy. Blank lines are excluded from these two metrics.
Line length is measured in characters without counting newline characters. Longest Line shows the largest row length, while Average Line Length averages character length across all counted lines, including blank lines as zero-length rows.
No. For normal use, the counting logic runs locally in your browser so the page can calculate results quickly without sending the pasted text to a TextBases server.