The quick answer
Paste a CSV, pick a column, and the extractor returns each value once with its count, sorted by frequency: 7,000 rows collapse into the 40 products hiding inside them. Values are trimmed, case-insensitive matching is on by default, and RFC 4180 quoting is handled. Runs in your browser; the catalog or roster never uploads.
Seven thousand rows, forty products
You don't want 7,000 rows. You want the 40 products hiding inside them. That gap, between a transaction file and the list of things that actually appear in it, is the whole reason this tool exists. Paste a CSV, pick a column, and get back the unique values it contains, optionally with a count of how many rows each one occupies.
It sounds trivial, and it is, until you try to do it somewhere that makes it awkward. Excel's route involves copy-pasting the column into a sheet, then Remove Duplicates, then re-copying the result: three hops, each one a chance to grab the wrong range. SQL is cleaner if you have a database loaded, but loading the CSV is exactly the step you were trying to skip. And the online tools that rank for this tend to want your file uploaded first, which is a strange price to pay for what is fundamentally a one-pass text operation.
So we kept this one honest: the file goes into a text box or file picker, the unique list comes out, and nothing crosses the network at any point. The tool also handles the details that decide whether the answer is correct (the case rule, whitespace trimming, quoted values containing commas), because a unique list that quietly doubles up a value is worse than no list at all.
Pulling unique values in four moves
The extractor is above this section. Four moves, none of them optional-feeling: paste or pick the file, choose the column, set the one toggle that decides what counts as "the same," and copy the result. The pass itself is instant; the paste is the slow part.
Load your CSV
Paste the raw text or use the file picker. The header row is read automatically and becomes the column list you choose from. The parser splits on commas and honors RFC 4180 quoting, so quoted values containing commas or line breaks stay intact; semicolon- or tab-delimited files need their delimiter converted to commas first.
Select the column
Pick the column whose distinct values you want. The picker lists each header with its position letter, so even two columns both named region stay distinguishable. One column is extracted at a time; there is no combination mode.
Set the matching rules
One toggle: case-insensitive or case-sensitive. It starts on case-insensitive, which folds NYC, nyc and Nyc into one entry shown in lowercase. Trimming is unconditional (leading and trailing spaces, including non-breaking spaces, are stripped from every value), and empty cells always count as one (empty) entry.
Extract and export
The list appears instantly with occurrence counts, sorted by count, highest first. The on-screen table shows the first 500 values; the download (unique-values.csv) and the copy button both give you the full list, one value per line, without counts.
That is the entire product surface. The rest of this article is about what happens underneath those moves, because that is the part worth trusting and the part worth double-checking when results look strange.
How uniqueness is decided: the rules under the hood
Step one is a real CSV parse, not a naive split on commas. RFC 4180, the closest thing CSV has to a constitution, allows fields to be wrapped in double quotes, and quoted fields may contain commas, quotes (doubled) and even line breaks. A value like "Smith, John" in a name column is one value, not two, and a tool that splits naively will report Smith and John as separate distinct entries. The extractor handles quoting, escaped quotes and both CRLF and LF line endings. One quirk it does not fix: an Excel-export BOM rides invisibly in front of the first header name, which changes nothing about the extracted values but can surprise a header-by-header diff.
Step two is the collapse. The tool walks the chosen column top to bottom and inserts each value into a hash map, the same data structure a database engine uses behind SELECT DISTINCT. A counter per value records how many rows each one occupies, and the finished list is sorted by count, highest first, with ties keeping their first-seen order. Our CSV Value Frequency Counter is the sibling page for when the counts, shares and top value are the whole point.
The comparison rules are where tools differ, so here they are stated exactly. Case-sensitive mode compares full strings after trimming. Case-insensitive mode, the default, folds with JavaScript's toLowerCase, which handles accented letters (École and école merge into one entry shown as école), not ASCII-only uppercasing. Trimming is unconditional: leading and trailing spaces plus the non-breaking space (U+00A0), the single most common invisible character in data copied from web interfaces, are stripped from every value before comparing. What the tool does not do is print a merge report: the count on a folded entry silently carries the sum, so the toggle state is the only record of which rule was active.
One more behavior worth knowing: extraction happens per column, not per row. The tool looks at nothing but the chosen column, which is what makes it cheap to run on wide files: a 60-column, 200,000-row export still takes one pass, and 59 columns never enter the count.
A worked extraction, start to finish
Here is a small employee file, small enough to verify by eye, structured exactly like the real ones. The goal is the distinct set of departments.
Input
department,employee Engineering,Alice Engineering,Bob Sales,Carol Engineering,Alice Marketing,Dan Sales,Erin Marketing,Dan
Output
Unique values: 3 · Rows scanned: 7 Engineering (3) Sales (2) Marketing (2) The list is sorted by count; Sales and Marketing tie at 2 and keep their first-seen order. The download contains the values only, one per line: Engineering, Sales, Marketing. Alice and Dan repeating does not add values: the set contains departments, not people.
Now the same file with the quirks that show up in the wild: a casing difference, a trailing space, and one blank cell. This is the run that separates real tools from naive ones.
Input
department,employee Engineering,Alice engineering,Bob Sales ,Carol Engineering,Alice ,Dan Sales,Erin
Output
Case-insensitive (the default): 3 values engineering (4) sales (2) (empty) (1) Case-sensitive: 4 values Engineering (3) Sales (2) engineering (1) (empty) (1) Both runs trimmed the trailing space after Sales before comparing, so Sales and Sales-with-a-space never split; the blank cell counts as a value either way, labeled (empty). Folded entries are shown in lowercase.
The case-sensitive run is not wrong; it is literal. If your file genuinely contains two spellings of a department, the literal answer is four values, and that is a data-quality finding, not a bug. The folded run is the cleaned answer. Both are useful at different moments: the literal one during cleanup, the folded one when you just need the list to feed a dropdown or a report filter.
Distinct extraction versus deduplication
These two operations get confused for each other constantly, and choosing the wrong one wastes an afternoon. The distinction is simple once stated: deduplication outputs rows, distinct extraction outputs values.
| Question | Use deduplication | Use distinct values |
|---|---|---|
| What do you need out the other end? | The full file, minus repeated rows | Just the set of things in one column |
| Does row context survive? | Yes, all columns kept | No, other columns deliberately dropped |
| Typical trigger | The same record was exported twice | You need a category list, dropdown or lookup table |
| Example job | CRM export where a sync bug duplicated contacts | Build the list of countries appearing in a sales file |
| Tool on this site | CSV Deduplicator | This page |
There is also a side effect worth naming: distinct extraction is the cheapest data-quality audit you can run. Five minutes after receiving any new CSV, extract the distinct values of every categorical column. Weird spellings, inconsistent casing and unexpected categories all surface immediately, on a list of 20 values instead of a spreadsheet of 20,000 rows (whitespace differences never surface, because every value is trimmed before comparing). Professional data teams call this profiling.
The SQL equivalence: DISTINCT is GROUP BY with the aggregates left off
If you learned data work in SQL, you already know this tool's case-sensitive mode: SELECT DISTINCT department FROM employees is the same operation on the same column. The half that fewer people know: DISTINCT is GROUP BY in disguise. The two statements below return the same rows from any SQL engine, which is free to execute them the same way.
-- same result set, two spellings
SELECT DISTINCT department FROM employees;
SELECT department FROM employees GROUP BY department;
-- where GROUP BY becomes strictly more capable
SELECT department, COUNT(*) AS rows
FROM employees
GROUP BY department
HAVING COUNT(*) >= 2
ORDER BY rows DESC;The second query is the frequency counter with the hood open: COUNT(*) is the count column, ORDER BY rows DESC is the sort this page applies by default, and HAVING is a filter that runs on groups rather than rows: show me only categories that appear twice or more. That is the point of the equivalence in practice: what this tool does with its one toggle, SQL does with clauses, and a workflow prototyped here can be handed to a database as a query a reviewer can read.
| Tool setting | SQL equivalent | The fine print |
|---|---|---|
| Distinct extraction of one column | SELECT DISTINCT col | Order is not guaranteed in SQL: add ORDER BY if the list's order matters (this page sorts by count) |
| Case-insensitive matching | GROUP BY lower(col) or a NOCASE collation | this page folds with toLowerCase, which merges accented capitals like École and école; check what your engine's lower() does before assuming the same |
| Trim whitespace | TRIM(col) | SQL TRIM strips spaces, not the non-breaking space: the tool strips both |
| Empty cells | The NULL row: SQL groups all NULLs into one output row | the page always counts an empty cell as one (empty) value, the same single-row behavior |
| Count column and sort | COUNT(*) plus ORDER BY 2 DESC | Identical results when the comparison rules match |
The NULL row deserves one more sentence because it surprises people twice: SQL treats NULLs as equal to each other for grouping purposes even though NULL = NULL is not true elsewhere in the language. So a nullable column with five thousand NULLs still produces exactly one NULL row under DISTINCT. This page behaves the same way with empty cells: they collapse into a single (empty) entry with its own count, a free blank-count audit; ignore that row when you only want the categories.
When unique lists lie: edge cases to watch
The extractor is exact about what it does, which means the failure modes live in your data, not the arithmetic. These are the ones that cause real mistakes.
- Invisible characters beyond spaces: zero-width spaces and soft hyphens (U+200B, U+00AD) survive trimming because they are not whitespace. If two values refuse to merge, run the column through a character inspector: the values are not identical, whatever your eyes say.
- Number formatting drift: 1,000 vs 1000 vs 1000.00 are three distinct values. Fix the formatting upstream or normalize the column first; no uniqueness rule can guess that these are the same quantity.
- Multi-value cells: a tags column containing "red, blue" is one value, not two. If you need per-tag uniques, split the column first (our CSV Column Extractor is the companion for rearranging columns before analysis).
- Headers that look like data: if the file has no header row, the first data row is read as the header and one real value silently disappears from your results. There is no headerless toggle, so add a header line to the file first.
- Duplicate headers: two columns both named region confuse column selection. The picker disambiguates by position (the second one carries its position letter), but renaming before import saves squinting.
- Very high cardinality: extracting distinct user IDs from a 500,000-row file yields a 500,000-value list, technically correct, operationally useless, and a hint that you wanted counts or sampling instead.
The people who need this weekly
Distinct extraction is a small operation with a strangely large audience, because categorical lists are the raw material of a dozen downstream jobs (dropdowns, config files, mappings, audit checklists). Six kinds of user account for most real-world use of distinct extraction.
- Analysts building dropdown filters and pivot dimensions, who need the category list before the dashboard exists.
- Marketing and CRM operators preparing segmentation: the distinct values of a country or plan column are the segments, enumerated.
- Teachers cleaning up class rosters and survey exports, where the distinct list of responses exposes every spelling of every answer.
- Developers writing validation logic: the distinct set of a legacy column is the enum the migration must accept.
- Support leads auditing ticket categories, where a distinct list of assignees or queues is the first step of a workload review.
- Librarians, event organizers and small-business owners, anyone maintaining data in spreadsheets who suddenly needs the clean list of options a column contains.
The common thread is direction: information flows out of a big file and into a small list that a human or a config file consumes. When information needs to keep flowing the other way (a big file assembled from lists), you want the converters and joiners instead, not this one.
Excel, SQL, or the browser: three routes compared
Every environment that can hold a column can produce its unique values. The honest comparison:
| Route | Steps | Friction points |
|---|---|---|
| Excel: copy column, Data → Remove Duplicates | 3–4 clicks plus two copy-pastes | Range selection is manual; case and whitespace rules are fixed; result lives in a scratch sheet |
| Excel 365 / Sheets: UNIQUE() formula | 1 formula, spills automatically | Needs a place to put the formula; UNIQUE() is case-sensitive with no options |
| SQL: SELECT DISTINCT col FROM staging | One statement | Requires loading the CSV into a database first: the step you were avoiding |
| This tool | Paste, pick, export | One file at a time; no scheduling or scripting |
SQLite deserves a special mention for the scripting-inclined: its .import command loads CSV directly and SELECT DISTINCT does the rest, with the official sqlite.org documentation covering the CSV quirks it handles. If your life already runs on scripts, that is a fine answer. This page is for everyone else, and for the days when even script people just want to see a list without opening a terminal.
Your data stays on your machine
A distinct-values tool sees the contents of your file, often the whole product catalog, patient roster or payroll register. We treat that as a reason to not see it at all. The parse, the collapse and the export are all JavaScript running locally in your browser tab. There is no upload endpoint to turn off by accident, no temp file on a server, no retention policy to read. Work offline once the page is loaded and everything still functions, a decent proof that no network call is involved.
The performance argument rhymes with the privacy one: skipping the upload round trip makes the tool instant on files that would spend noticeable seconds in transit. Local first is faster and quieter, which is why we build the whole data-tools collection this way.
Frequently asked questions
Everything users ask about the extractor, answered once in one place: the difference from deduplication, the case and whitespace rules, empty cells, and what the result can be exported as. If a question is missing, the contact page takes new ones.
How is extracting distinct values different from removing duplicate rows?
Deduplication keeps every column and removes whole rows that repeat. Distinct extraction collapses one chosen column to its unique values, discarding everything else on purpose. Use dedupe when the rows themselves matter; use distinct when you need the set of things that appear: the list of products, departments or countries in the file.
Does the extractor treat NYC and nyc as the same value?
Yes, by default: the toggle starts on case-insensitive, and NYC, nyc and Nyc collapse into a single entry, shown in lowercase with the counts summed. Switch it off for a literal, case-sensitive read that preserves exactly what the file contains. For category columns like cities or product names, case-insensitive is usually the right choice.
Why do two values that look identical appear separately in my results?
Almost always invisible characters that trimming cannot catch. A zero-width space or a soft hyphen will make two identical-looking values different to any byte-exact comparison, because the extractor's trim only strips leading and trailing whitespace (spaces, tabs and non-breaking spaces). Trailing spaces and non-breaking spaces themselves are already handled: every value is trimmed before comparing, so those cases collapse automatically.
Can I get unique values from two columns together, like city and state pairs?
No: the extractor works one column at a time, and there is no multi-column combination mode. To get distinct city-and-state pairs, concatenate the two columns into one upstream and run the extractor on the combined column; that is the practical equivalent of SELECT DISTINCT city, state.
Does an empty cell count as a distinct value?
Yes, always: empty cells collapse into one (empty) entry with its own row count, and there is no toggle to hide it. That row is a free blank-count audit when you are profiling the column; ignore it when you only want the real categories.
How large a file can it handle?
Hundreds of thousands of rows are comfortable on an ordinary laptop, because the algorithm is a single pass with a hash map: memory grows with the number of unique values, not with the number of rows. A 200,000-row file with 30 unique values uses less memory than the input text itself. The results table lists the first 500 values on screen; the download contains all of them.
Can I export the result as a comma-separated list instead of a column?
The download and the copy button both give you the full list one value per line, ready for a spreadsheet column; there is no comma-list or counts export on this page. For counts as a CSV with share percentages, the sibling CSV Value Frequency Counter is the tool built for that.
Where to go next
Distinct values answer what appears; the neighbors answer what it means. The CSV Value Frequency Counter sorts those values by how often they occur, with share percentages: the difference between a list and a Pareto view. The CSV Deduplicator is the row-level sibling when repeated records, not repeated categories, are the problem. And when the unique list is just the first step of a bigger rearrangement, the CSV Column Extractor reshapes the file around the columns you actually want to keep.
If you are profiling a new file for the first time, run this tool on every categorical column, then the frequency counter on anything suspicious. Five minutes of that routine catches most data-quality problems before they reach a report.
Sources and further reading
Primary sources for the parsing and semantics described above:
Sources and further reading
- RFC 4180: Common Format and MIME Type for Comma-Separated Values (CSV) Files(rfc-editor.org)
- W3C: Model for Tabular Data and Metadata on the Web(w3.org)
- SQLite: CSV Import documentation(sqlite.org)
- MDN Web Docs: JavaScript Set reference(developer.mozilla.org)
We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.