ToolsEdit PDFArticlesPricingContact
GuidesOct 21, 2026·3 min read

How to Remove Duplicate Rows in Excel and CSV Files

TPTry PDF Kit team
How to Remove Duplicate Rows in Excel and CSV Files

How to remove duplicate rows in Excel or CSV, comparing every column or only some, and how to check first so you never delete the wrong record.

Duplicate rows creep in when you merge exports, import the same list twice or copy data from several people. To remove duplicate rows in Excel or CSV safely, decide what counts as a duplicate, look before you delete, and keep a copy of the original.

Decide what "duplicate" means

Two rows can be identical in every column, or they can share only a key such as an e-mail address or an invoice number. These are different situations.

  • Whole row duplicates: every cell matches. This is usually a pure copy mistake and safe to remove.
  • Key duplicates: the e-mail matches but the phone number differs. Deleting one may lose newer information, so look first.

Remove duplicate Excel rows lets you compare all columns or only the ones you choose. For text files, Remove duplicate CSV rows deletes repeated rows and keeps the first of each.

Look before you delete

If the data matters, mark duplicates first rather than deleting them. Find duplicates in Excel adds a new column that flags duplicate rows, or duplicate values in chosen columns, without removing anything. Sort or filter on the flag, review a sample, and only then run the removal.

This extra step is worth it for customer lists, where two people can share a name but not an e-mail, and for financial lists, where two identical amounts on the same day can be two real payments.

Steps to remove duplicates

  • Make a copy of your file and work on the copy.
  • Clean the text first. A value like "Anna " with a trailing space does not match "Anna". Run Trim Excel whitespace to strip stray spaces from text cells.
  • Open the duplicate remover and add the file.
  • Choose all columns or pick the key columns that identify a record.
  • Run it, download the result and compare the row count against the original. The difference is the number of rows removed.

Why some duplicates survive

If you removed duplicates and some still look the same, check these causes.

  • Hidden spaces or different capitalisation: "Raj@Mail.com" and "raj@mail.com" look alike but may be treated differently.
  • Different spelling or abbreviations: "St." and "Street" are different text, and no tool should guess that for you.
  • Numbers stored as text in one row and as numbers in another. Convert numbers stored as text makes them consistent.
  • Extra columns, such as a serial number or a date added, that make each row unique. Compare only the columns that identify the record.

After the clean up

Once the list is unique, you may want it sorted or trimmed of empty rows. Delete blank Excel rows removes the empty ones, and Sort Excel by column puts it in order.

The work happens in your browser, so a client list is not uploaded. A few free uses are available without signing in, then you continue with Google.

Frequently asked questions

How do I remove duplicates in Excel without losing data?

Work on a copy, and flag duplicates before deleting them. Then remove using only the columns that identify a record, and compare row counts before and after.

Which duplicate is kept when I remove repeated rows?

For CSV files the first occurrence of each row is kept and the later ones are deleted. If the newest row is the one you want, sort the data so the newest comes first before you run it.

Can I remove duplicates based on one column only?

Yes. Choose just that column, such as e-mail or ID, as the comparison key. Rows that share the value are treated as duplicates even if other columns differ.

Ready to try it on your own files? Try PDF Kit gives you 3 free uses without an account.

Browse all toolsBrowse all tools

Keep reading.

Every PDF tool you need, in one place.

Try 3 tools free, no account needed.

Start for freeStart for freeBrowse all toolsBrowse all tools
How to Remove Duplicate Rows in Excel and CSV Files | Try PDF Kit