Duplicate Rows Finder
Paste a CSV, a spreadsheet range or a plain list and find repeated rows. Match on whole rows or only on the columns you choose, such as an email or ID. See which rows repeat and where they sit, then download a cleaned copy with the duplicates removed. Everything runs in your browser and nothing is uploaded.
CSV, tab-separated (copied from Excel or Sheets), semicolon or pipe separated, or one value per line.
Duplicate groups
Cleaned data (duplicates removed)
What duplicate rows are and why they matter
A duplicate row is a record that repeats another one. Duplicates creep in when forms are submitted twice, exports are merged, files are appended more than once, or people retype entries. Left in place, they inflate counts, skew averages and percentages, make a survey look larger than it was, and cause practical problems such as the same customer being emailed twice. Checking for them is one of the first steps of data cleaning (Rahm & Do, 2000).
Whole-row or key-based matching
Two rows can be duplicates in two senses:
- Exact duplicates: every compared column is identical. This is the default here, with all columns ticked.
- Duplicates by key: they share the identifying columns, such as an email address, student number or order ID, even though other columns differ. Untick the columns that should be ignored and keep only the key columns.
Key-based matching is what you usually want for people and transactions, because the same person can appear twice with a different city, a different spelling of the name or a later date.
Matching rules explained
- Case-sensitive. Off by default, so “Ana” and “ana” match. Turn it on when capitalisation carries meaning, for example in codes.
- Trim spaces and collapse repeated spaces. Invisible leading, trailing or doubled spaces are a very common reason for rows that look identical but are not.
- Empty cells are not duplicates. If you match on a column where many cells are blank, you usually do not want all the blanks grouped together as one giant duplicate.
- Keep first or keep last. Decide which copy survives in the cleaned data. Keep last is useful when later entries are corrections or updates.
The tool finds exact matches after these normalisations. It does not find near matches such as “Jon” and “John” or “Main St.” and “Main Street”. Those need fuzzy matching or manual review.
Worked example you can check by hand
Use the sample data: a header row and six records for name, email and city. Rows are numbered with the header as row 1, so the records are rows 2 to 7. Ana (row 2) and ana with an upper-case email and a trailing space (row 4) look alike. Bilal appears on rows 3 and 6. Dina (row 7) shares an email with Ana but has a different name and city.
Whole row, case-sensitive, no trimming: only the two Bilal rows match. 1 group, 2 rows involved, 1 extra copy.
Whole row, case-insensitive with trimming: Ana and ana now match too. 2 groups, 4 rows involved, 2 extra copies, 4 rows left after cleaning.
Email only, case-insensitive with trimming: the email ana@example.com appears on rows 2, 4 and 7, and bilal@example.com on rows 3 and 6. 2 groups, 5 rows involved, 3 extra copies, 3 rows left (Ana, Bilal and Chen).
The same six records give three different answers, which shows why the choice of matching rule matters. Try each setting on the sample.
Equivalent steps in other tools
| Tool | How to do it |
|---|---|
| Excel | Data → Remove Duplicates (choose the columns to compare). To only highlight them, use Conditional Formatting → Duplicate Values. |
| Google Sheets | Data → Data cleanup → Remove duplicates, or the UNIQUE() function to list distinct rows. |
| Python (pandas) | df.duplicated(subset=[...], keep=False) to flag, and df.drop_duplicates(subset=[...], keep="first") to remove. |
| R | duplicated() and unique(), or dplyr::distinct(). |
| SQL | GROUP BY the key columns with HAVING COUNT(*) > 1 to find them. |
Common mistakes
- Deleting without looking. Some repeated rows are real: two sales of the same item, or repeated measurements. Check a sample of the duplicate groups before removing anything.
- Matching on too few columns. Two different people can share a name. Use a reliable ID or a combination of columns.
- Matching on too many columns. A timestamp or a notes column makes every row unique, hiding true duplicates.
- Ignoring hidden whitespace and case. Rows that look identical on screen may differ by a space or capital letter.
- Dropping the wrong copy. If one record is newer or more complete, choose “keep last” or merge the rows by hand.
- Forgetting to keep the original. Always keep an untouched copy of the source file before cleaning.
Frequently asked questions
How are rows numbered?
In the order you pasted them. The header, if you have one, is row 1, and blank lines are skipped. This matches the row numbers you see in most spreadsheets when there are no blank lines.
What counts as an “extra copy”?
For each group of identical rows, one is kept and the rest are extra copies. If a row appears three times, that is two extra copies. The total of extra copies is the number of rows removed when you clean the data.
Will my cleaned data keep the original formatting?
The text of each kept row is preserved, but CSV quoting is rebuilt using the separator you chose, so a field that contains a comma is wrapped in quotes. In whole-line mode, lines are kept exactly as typed.
Can it handle quoted fields with commas or line breaks?
Yes. Fields in double quotes can contain separators, and a doubled quote inside a field stands for one quote character.
How many rows can it handle?
Tens of thousands of rows work fine on an ordinary laptop. Very large files are better handled in a spreadsheet or database, and the cleaned-data box shows only the first 300 rows, though copying and downloading always include everything.
Is my data uploaded anywhere?
No. The comparison runs as JavaScript in your browser, and nothing is sent to a server. This matters for lists of names, emails and survey responses. You can confirm in the Network tab of your browser’s developer tools.
Further reading
- Rahm, E., & Do, H. H. (2000). Data cleaning: Problems and current approaches. IEEE Data Engineering Bulletin, 23(4), 3–13.
- Wickham, H. (2014). Tidy data. Journal of Statistical Software, 59(10), 1–23.