Every list that has been edited by hand, merged from two exports or copied out of other lists ends up with the same quiet problem: some entries are in there twice. Sometimes it is the identical line pasted twice. More often it is the same entry wearing a disguise, with a trailing space, a capital letter changed, or a blank line sitting between the copies. Counting by eye works for twenty lines. It does not work for two thousand.
The fix is a deduplicator that treats "the same" as a decision you make, not a guess it makes. This guide explains how to remove duplicates from a CSV or a plain list with the free Data Deduplicator and Cleaner on Ovatly: how to choose the right mode, how to set the controls that define a duplicate, and how to check the change log before you trust the result.
Contents
- Quick answer
- Lines or rows: the first decision
- The settings that decide what counts as the same
- How to remove duplicates, step by step
- Worked example: five lines in, two lines out
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
To remove duplicates from a CSV or list: open the Data Deduplicator and Cleaner, paste your lines or your CSV, choose the data shape (one value per line, or CSV rows), set trimming, case sensitivity, blank-line handling and which occurrence to keep, then press Clean data and read the change log above the result. Two limits to know up front: matching is exact after the normalizations you choose, so near-duplicates with different punctuation or extra words survive; and CSV mode compares whole rows only, never a single column.
Lines or rows: the first decision
The cleaner works on two shapes of data, and picking the right one is most of the job.
Line mode treats the paste as one value per line: a list of names, emails, codes or anything else where each line stands alone. Duplicates are lines that match, and removing them leaves each value once.
CSV mode treats the paste as records. It deduplicates whole rows, meaning all cells in the row are compared together, and two rows are duplicates only if every cell matches. The header row is always kept and never treated as data. This matters more than it sounds: two rows for the same person with different phone numbers are not duplicates in CSV mode, because the rows as a whole differ. If you actually want to deduplicate on one column, such as email addresses inside a wider table, extract that column, paste it as lines and use line mode.
The settings that decide what counts as the same
A duplicate is not a fact about the data; it is a decision about which differences you are willing to ignore. The cleaner exposes that decision as four controls.
Trimming removes leading and trailing spaces before comparison, so an entry copied with a stray space still matches its clean twin. Case sensitivity decides whether Ana and ANA are the same entry: with case-insensitive matching, the comparison is made on lowercased copies, while the surviving line keeps its original spelling. Blank-line handling decides whether empty lines are removed and counted separately, or left alone. And keep first versus keep last decides which occurrence survives: the earliest, or the final one in its original position. The set of unique values is identical either way, but the surviving spelling and position can matter when case-insensitive matching is on.
Set these deliberately. The default instinct, turning everything forgiving on, can merge entries that were genuinely different; leaving everything strict misses the disguised copies you came to remove.
How to remove duplicates, step by step
- Open the Data Deduplicator and Cleaner and paste your lines, or your CSV including its header row.
- Choose the data shape: one value per line, or CSV rows.
- Set the controls: trimming, case sensitivity, blank-line handling, and keep first or keep last, based on what "the same" means for this data.
- Press Clean data.
- Read the change log above the result before you copy anything. It states how many lines or rows went in, how many duplicates were removed, how many blank lines were removed and how much was kept. If those numbers surprise you, adjust the controls and run it again.
Worked example: five lines in, two lines out
Take these five lines, the kind of small mess a hand-kept list produces:
Ana
ben
ANA
Ben
That is four visible lines plus one blank line: Ana, ben, ANA, a blank, and Ben. Run them in line mode with trimming on, case-insensitive matching on, blank-line removal on and keep-first selected.
The output is two lines:
Ana
ben
And the change log explains exactly what happened: 5 input lines, 2 duplicates removed, 1 blank line removed, 2 lines kept. ANA matched Ana once case was ignored, and Ben matched ben the same way, so both later copies were dropped. The blank line was removed and counted on its own line of the log, not lumped in with the duplicates. Ana keeps its capital A and ben keeps its lowercase form, because the kept lines keep their original spelling; only the comparison was lowercased.
Limitations and honest tradeoffs
Matching is exact after the normalizations you choose. That is a deliberate design, and it cuts both ways. Entries that differ by punctuation, an extra word or a typo are not merged, because the tool has no way to know they were meant to be the same record. A list with the same person written three slightly different ways will still have three entries after cleaning. Finding those is a judgement call, and it stays yours.
CSV mode compares complete rows only. There is no single-column deduplication inside a table, because silently dropping rows that share one cell while differing in others would destroy data. The line-mode workaround, pasting the column on its own, is the honest route when one column is what you care about.
Finally, the change log reports what the settings did, not what you meant. If the counts look wrong, the settings were wrong for this data, and the fix is to change them and rerun, not to edit the output by hand.
Common mistakes
- Skipping the change log. The output can look plausible while the settings quietly merged or kept the wrong things. The log is the audit; read it every time.
- Expecting near-duplicates to merge. Different punctuation or extra words means a different entry as far as exact matching is concerned. Clean those up separately.
- Deduplicating a CSV when you meant one column. Whole-row comparison keeps rows that differ in any cell. Paste the single column as lines instead.
- Turning case-insensitive matching on without thinking. Initials, codes and case-sensitive identifiers can collide once case is ignored.
- Deleting the original before checking the result. Keep the source until the cleaned output and its log have both been reviewed.
FAQs
Does it remove near-duplicates, like the same entry with different punctuation? No. Similarity is exact after the normalizations you choose, such as trimming and case handling. Entries that differ by punctuation, extra words or spelling are kept, because the tool cannot know they were meant to be the same.
Can it deduplicate a CSV on one column only? No. CSV mode compares complete rows, all cells together. To deduplicate on a single column, paste that column as lines and use line mode instead.
What is the difference between keep first and keep last? Keep first keeps the earliest occurrence and drops the later copies. Keep last keeps the final occurrence in its original position. The set of unique values is the same either way; only which copy survives changes.
Does case-insensitive matching change the spelling of what is kept? No. Matching compares lowercased copies, but the line or row that survives keeps its original spelling exactly as it appeared in your data.
Is my data uploaded to a server? No. The cleaning runs entirely in your browser, so the list or CSV you paste never leaves your device.
Conclusion
Removing duplicates well is mostly deciding, in advance, what counts as the same. Choose lines or rows, set trimming and case to match that decision, run the Data Deduplicator and Cleaner, and let the change log prove the result before you use it. If you then need to inspect or correct the surviving records, our guide to viewing and editing a CSV file online without Excel shows that workflow. For more guides in this series, see our Data and JSON Tools guides.
References
- RFC 4180, the common format for CSV files and the header-row convention: https://www.rfc-editor.org/rfc/rfc4180
- W3C, Model for Tabular Data and Metadata on the Web: https://www.w3.org/TR/tabular-data-model/