Remove Duplicates in Google Sheets

Copy cells from your sheet, paste them here and see which rows repeat before anything is deleted. Choose the columns to compare, keep the first or the last copy, then copy the unique rows — or the removed ones — back into a sheet. It all happens in your browser.

Select the cells in your sheet, including the header row, press Ctrl+C (⌘C on Mac) and paste them here.

Your data stays in your browser — nothing is uploaded.

Keep

Prefer a formula?

Type =UNIQUE(A2:C) in an empty cell, or use Data → Data cleanup → Remove duplicates.

Three ways to remove duplicates

Keep the first or the last copy

With First copy, the earliest row of each group stays and the later copies go. With Last copy, the bottom row stays — useful when new entries are added at the end and you want the latest one. The order of the rows you keep never changes.

Duplicates across several columns

By default a row is a duplicate only when all its cells match. Untick columns under Compare columns to compare just some of them — for example, only Email, so the same address with a different name still counts as a duplicate. Match case treats Ann and ann as different; Ignore extra spaces ignores spaces at the start and end and double spaces inside. Rows that are blank in every compared column are never counted as duplicates.

Privacy

The rows you paste are read by this page in your browser and are not sent to any server. We don't ask for access to your Google account.

Highlight instead of delete

Want to see duplicates in your sheet and keep every row? Get a formula to highlight duplicates with conditional formatting.

Remove duplicates FAQ

How do I remove duplicates in Google Sheets?

Select the data and use Data → Data cleanup → Remove duplicates. To check first, paste the cells here, look at the preview and copy the unique rows into a new sheet.

Can I keep the last copy instead of the first?

Here you choose First copy or Last copy, and the preview shows exactly which rows stay.

Is Remove duplicates case-sensitive?

No — the built-in tool treats Ann and ann as the same. Turn on Match case here to keep them apart.

How do I remove duplicates but keep the last entry?

Paste your data here, choose Last copy and copy the unique rows.

Can I undo removing duplicates?

In Sheets, press Ctrl+Z (⌘Z on Mac) right away, or restore an earlier copy from File → Version history. This page never changes your sheet: it only copies rows to your clipboard when you click a button.