List Stats
Get statistics on any list: total count, unique count, min and max line length, average length, and the longest and shortest items. Useful for auditing data before further processing.
Total
7
Unique
6
Duplicates
1
Avg length
4.9
Longest length
6
Shortest length
3
Longest
banana
Shortest
fig
Top duplicates
- apple×2
How to use the list stats
Paste any list. Counts, lengths, and the most-repeated entries are computed instantly.
Formula & explanation
Whitespace-trimmed, blank-skipped. Avg length is in characters.
Examples
Useful for quickly inspecting CSV exports, log lines, or raw API responses.
Frequently asked questions
- How do I count unique values in a list?
- Paste your list and the 'Unique' count shows exactly how many distinct items exist after trimming whitespace.
- Can I see which items appear more than once?
- Yes — the 'Top duplicates' section lists every repeated item alongside how many times it appears, sorted by frequency.
- What does average length mean here?
- It is the mean number of characters per line (after trimming), useful for spotting unexpectedly long or truncated entries in a data export.
- How are blank lines handled?
- Blank lines are skipped before all calculations, so they do not inflate the total count or distort average lengths.
Related list tools tools
- List Set OperationsPerform set operations on two lists: union, intersection, difference, A-only, B-only, and symmetric difference. Paste two lists and choose the operation — results update instantly.
- Comma to Lines ConverterConvert between comma-separated values and one-item-per-line format. Handles quoted fields, trims whitespace, and removes duplicates. Paste CSV data, get a clean list — and back.
- List FilterKeep or remove lines matching a plain-text substring or regular expression. Useful for filtering log output, cleaning data, or extracting matching lines from large lists.
- List to JSON ArrayConvert a one-item-per-line list into a JSON array of strings and back again. Handles quoting and escaping automatically — useful for turning clipboard lists into API payloads.
- Prefix / Suffix WrapperWrap every line with a custom prefix and suffix. Useful for building SQL IN clauses ('value'), quoting shell arguments, wrapping HTML tags, or generating code from a list.
- Number Sequence GeneratorExpand range patterns like 1..100 or 0,2,4..20 into complete numeric lists. Supports step size, comma-separated output, and custom separators — great for test data and scripting.