Skip to content
MyToolkit.pro

Text tool

Distinct values finder

Find unique values, count repetitions and see where each value first occurred. Everything runs locally.

Private by design: your text stays in this browser.

Try an example

Result

Unique values
0
Duplicates
0
ValueCountFirst position

How it works

Choose or detect the separator. Values can be trimmed, compared without letter case, sorted and exported; the table keeps counts and first positions.

How to get a list of unique values with counts

  1. Paste your values into Input: a column copied from a spreadsheet, a comma-separated list from an email, or a log excerpt.
  2. Pick the Separator. Leave it on Detect automatically, or set New line, Comma, Semicolon or Tab yourself when you already know the format.
  3. Choose how values are compared. Trim surrounding spaces is on by default, so red and red count as one value. Turn on Ignore letter case if Alpha and alpha should merge.
  4. Turn on Sort values if you want the list in alphabetical order. Otherwise values stay in the order they first appear.
  5. 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.
  6. 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, remote and REMOTE collapse 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,a is split on the semicolon into a,b and c,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: École and ecole stay 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.

Frequently asked questions

What is the difference between distinct values and unique values?

In everyday use they mean the same thing: every different value listed once. Some spreadsheet guides use "unique" to mean values that appear exactly once. To find those here, look for rows where Count is 1.

How do I count how many times each value appears in a list?

Paste the list and read the Count column next to each value. The counts add up to the total number of non-empty items you pasted.

Can I find distinct values in one column of an Excel sheet?

Yes. Select the column in Excel or Google Sheets, copy it and paste it here. Each cell arrives on its own line, so the tool splits them by line automatically.

Does the tool remove leading zeros or change number formats?

No. Values are compared and returned as text exactly as typed, so `007` and `7` are counted as two different values.

All in Text & Lists

Lines, words & characters counter

Count lines, words, Unicode characters, UTF-8 bytes, paragraphs and reading time locally in your browser.

Text & Lists In your browser

Duplicate line remover

Remove duplicate lines from any list, with optional case-insensitive and whitespace-trimmed matching. Works entirely in your browser.

Text & Lists In your browser

Random Picker

Pick one or more random items from a list, with or without replacement. Private, fair selection entirely in your browser.

Text & Lists In your browser

Sort lines

Sort lines alphabetically, numerically, in natural order or by length. Reverse, ignore case and remove duplicates. Works entirely in your browser.

Text & Lists In your browser

List randomizer

Shuffle the order of any list randomly with an unbiased Fisher-Yates shuffle. Works entirely in your browser.

Text & Lists In your browser

Remove empty lines

Remove empty and blank lines from any text, or collapse runs of blank lines into one. Trim whitespace and keep everything in your browser.

Text & Lists In your browser

What do you need?

Swipe up for the next one