How to get a list of unique values with counts
- Paste your values into Input: a column copied from a spreadsheet, a comma-separated list from an email, or a log excerpt.
- Pick the Separator. Leave it on Detect automatically, or set New line, Comma, Semicolon or Tab yourself when you already know the format.
- Choose how values are compared. Trim surrounding spaces is on by default, so
redandredcount as one value. Turn on Ignore letter case ifAlphaandalphashould merge. - Turn on Sort values if you want the list in alphabetical order. Otherwise values stay in the order they first appear.
- Read the table. Each row shows a value, its Count, and its First position (1 is the first item in your input). The two tiles above it show how many unique values there are and how many repeats were removed.
- Use Copy result or Download .txt to get the plain-text list with one unique value per line.
The result updates as you type or change an option, so you don't need to click Generate result after every edit.
Worked examples
A comma list where case doesn't matter (Separator: Comma, Ignore letter case on):
Input: Alpha, alpha, Beta, Alpha
Result: Alpha count 3, first position 1
Beta count 1, first position 3
Unique values: 2 · Duplicates: 2
When case is ignored, the row keeps the spelling of the first occurrence, so Alpha stays capitalised even though alpha was also in the list.
Country-coded IDs pasted one per line, with a blank line in between (Detect automatically, Ignore letter case on):
| Value | Count | First position |
|---|---|---|
| PL-1042 | 2 | 1 |
| DE-77 | 2 | 2 |
| FR-3 | 2 | 4 |
The input was PL-1042, DE-77, pl-1042, FR-3, DE-77, an empty line, and fr-3. The empty line is skipped, but it still takes up position 6. That's why positions refer to your original input, not to the filtered list.
The same semicolon list with and without trimming:
Input: red; red;red;blue
Trim on: red (3), blue (1)
Trim off: red (2), " red" (1), blue (1)
Numbered labels with Sort values on: item10, item2, Item1, item2 become Item1, item2, item10. Numbers inside values are compared as numbers, so item10 comes after item2.
Where a distinct-values check saves time
- Before a VLOOKUP or a database import: paste the key column and look at Duplicates. If it isn't 0, the key isn't unique, and the table's Count column shows which IDs repeat.
- Cleaning survey answers or tags: with Ignore letter case on,
Remote,remoteandREMOTEcollapse into one entry, and Count shows how often each answer came up. - Checking a recipient list: paste emails one per line to see who appears twice before you send.
- Making a dropdown or filter list: copy a category column from a spreadsheet, turn on sorting, and download the clean list.
If you only need the duplicate lines removed and don't need counts, Duplicate line remover is quicker. To rank words in running prose rather than whole values, use Word Frequency Counter.
Separators, case and other edge cases
- Only one separator is used at a time. Detect automatically checks for a new line first, then a semicolon, then a tab, and falls back to a comma. For example,
a,b;c,ais split on the semicolon intoa,bandc,a. Choose the separator yourself when your data mixes them. - If your input has more than one line, automatic detection splits by line. That means a multi-column CSV is compared row by row, not cell by cell. To check a single column, copy just that column, or use CSV Viewer to look at the file first.
- Windows line endings (CRLF) are handled, so values copied from Excel or Notepad don't pick up a hidden carriage return.
- Ignore letter case changes letter case only, not accents:
Écoleandecolestay separate. Use Remove accents first if they should count as the same value. - Empty values are skipped unless you turn on Include empty values. If you do, they show as ∅ in the table and as a blank line in the plain-text result.
- Input is limited to 1,000,000 characters. Processing happens in your browser tab, so very large lists depend on your device's memory.