Introduction
Learning how to remove duplicates in Google Sheets is the fastest way to clean up a messy spreadsheet. You copy a list from two places, you paste a column twice, or a form collects the same email three times, and suddenly your count is wrong, your mail goes out twice, and your report looks careless.
The good news is that you do not need to buy software or install anything to fix it. Excel and Google Sheets both have a built-in way to remove duplicates, and if you want the fastest route, a free online tool does the same job in one click. The steps for how to remove duplicates in Google Sheets take less than a minute once you know where the button is.
This guide shows you how to find and remove duplicates in Google Sheets, how to remove duplicates in Excel, and how to clean plain text with a free online tool, step by step, so you can pick the one that fits your list.
The short answer
If you are wondering how to remove duplicates in Google Sheets, select your data, go to Data, then Data cleanup, then Remove duplicates, and confirm. In Excel, select your data, go to the Data tab, and click Remove Duplicates. If your list is plain text rather than a spreadsheet, paste it into the free Remove Duplicate Lines tool and it deletes every repeated line in one click, with nothing uploaded.
Table of contents
- How to remove duplicates in Google Sheets
- How to remove duplicates in Excel
- How to remove duplicate lines with a free online tool
- Which method should you use?
- Common mistakes to avoid
- Frequently asked questions
How to remove duplicates in Google Sheets
Google Sheets is the easiest place to clean a list, because the tool is built in and free. The steps below show how to remove duplicate rows in Google Sheets, whether the repeats sit in a single column or across the whole sheet.
- Open your spreadsheet and click the letter at the top of the column that has the duplicates, for example column A.
- Go to the top menu and click Data.
- Click Data cleanup, then click Remove duplicates.
- A small window appears. Make sure the right column is ticked. If your first row is a heading such as “Name” or “Email”, tick Data has header row.
- Click Remove duplicates. Sheets tells you how many duplicate rows it removed and how many unique rows are left.
If you would rather keep the original list untouched and get a clean copy somewhere else, use the UNIQUE function — this is how to remove duplicates in Google Sheets using a formula without deleting anything. In an empty cell, type =UNIQUE(A2:A100) with your real range. Sheets builds a new list with no repeats, and the original stays as it is.
Google’s own help page explains the Remove duplicates feature and its options.
One thing to watch: Sheets treats “Apple” and “apple” as different values, and a cell with an extra space at the end is a different value too. Trim spaces and fix capital letters first if rows that look the same are not being removed.
How to remove duplicates in Excel
Excel has the same feature, and it works almost the same way, so learning how to remove duplicates in Excel takes only a few clicks once you know where the button is.
- Click any cell inside your list, or select the column that has the duplicates.
- Go to the Data tab at the top.
- In the Data Tools group, click Remove Duplicates.
- A window lists your columns. Tick only the columns you want Excel to check. If you tick two columns, a row is only a duplicate when both columns match.
- If your first row is a heading, tick “My data has headers” at the top of the window.
- Click OK. Excel tells you how many duplicate values it removed and how many unique values remain.
Excel also has a formula option. In an empty column, type =UNIQUE(A2:A100) with your real range, and Excel fills the clean list for you.
A warning worth remembering: Remove Duplicates in Excel deletes rows permanently. Make a copy of the file, or copy the sheet, before you use it.
How to remove duplicate lines with a free online tool
Sometimes your list is not in a spreadsheet at all. It is a text file, an email, a chat message, a list of links, or a column you copied out of a sheet.
The free Remove Duplicate Lines tool handles any list like that. Paste the text, click one button, and the repeated lines are gone.
- Copy your list and paste it into the box.
- Click Remove Duplicates.
- Copy the clean list back.
The tool also has four extra modes. “Show Only Duplicates” lists just the repeated lines so you can check them first. “Find Duplicates” shows each repeated line with a count. “Count Lines” counts every line and reports the total, and “Compare 2 Lists” shows the lines that appear in both lists.
Two options matter most. “Ignore case” treats “Apple” and “apple” as the same line. “Trim spaces” removes spaces at the start and end of each line, so “Apple ” and “Apple” count as one line.
Everything runs in your browser. Your list is never uploaded to a server, there is no account to create, and there is nothing to install.
Which method should you use?
| Situation | Best method |
|---|---|
| Your list is already in Google Sheets | Data, Data cleanup, Remove duplicates |
| Your list is already in Excel | Data tab, Remove Duplicates |
| You want to keep the original and get a clean copy | UNIQUE formula in Sheets or Excel |
| Your list is plain text, not a spreadsheet | Free online Remove Duplicate Lines tool |
| You need to compare two lists | Compare 2 Lists mode in the online tool |
| You need to see which lines repeat and how often | Find Duplicates mode in the online tool |
If your list lives in a spreadsheet, use the built-in feature. It is already there and it understands the format of your data. If you only need to know how to remove duplicates in Google Sheets from a single column, select just that column before you open Data cleanup — the rest of the steps are the same. If your list is plain text, the online tool is faster than pasting it into a spreadsheet first.
Common mistakes to avoid
Deleting before copying. Remove Duplicates deletes rows for good. Copy the sheet or file first.
Checking the wrong columns. In Excel, ticking two columns means a row is a duplicate only when both columns match. In Sheets, ticking an extra column has the same effect.
Forgetting the header row. If you do not tick “Data has header row”, your heading can be treated as a normal row and removed as a duplicate.
Hidden spaces and capital letters. “Apple”, “apple” and “Apple ” look identical, but the tool sees three different values. Trim spaces and fix the case first.
Sorting first when you do not need to. You do not have to sort a list to remove duplicates. Sorting only changes the order, which can break a list that is already in the order you want.
Frequently asked questions
Can I remove duplicates without sorting my list?
Yes. Neither Excel, Google Sheets nor the online tool needs a sorted list. Your original order is kept.
Does Remove Duplicates keep the first or the last copy?
It keeps the first copy and deletes the later ones. In the online tool you can turn on “Keep last copy” if you want the last one instead.
Why are some duplicates not being removed?
Almost always because of a hidden difference: an extra space, a capital letter, or a different format. Trim spaces and make the case match, then try again.
Is my list uploaded when I use the online tool?
No. The tool runs entirely in your browser. Your text never leaves your device.
Can I remove duplicates from a text file?
Yes. Open the file, copy all the text, paste it into the online tool, remove the duplicates, and copy the clean list back into a new file.
What is the difference between UNIQUE and Remove Duplicates?
Remove Duplicates deletes rows from your existing list. UNIQUE builds a new clean list in another place and leaves the original untouched.
How do I remove duplicate rows in Google Sheets?
Select the column or range with the repeats, go to Data, then Data cleanup, then Remove duplicates, tick the columns to check, and confirm. Sheets removes the repeated rows and tells you how many duplicate rows it removed.
How do I remove duplicates in Google Sheets using a formula?
Type =UNIQUE(A2:A100) in an empty cell, using your real range. Sheets builds a clean list with no repeats in a new place and leaves the original list untouched, so this is the best option when you do not want to delete anything.
How do I automatically remove duplicates in Google Sheets?
There is no built-in setting that deletes duplicates automatically as you type. The closest option is the UNIQUE formula: because it is a live formula, the clean list updates automatically whenever you change the original data. Otherwise, repeat the steps for how to remove duplicates in Google Sheets after new rows are added.
Conclusion
Now you know how to remove duplicates in Google Sheets and Excel, and it takes less than a minute. Use the built-in Remove Duplicates feature in your spreadsheet, or the UNIQUE formula if you want to keep the original, or the free online tool if your list is plain text.
Pick the method that matches where your list already lives, make a copy before you delete anything, and check the result before you share the list. If you also prepare documents for official forms, see our guide on how to compress a photo to 100KB for online forms.
Try it now: open the free Remove Duplicate Lines tool, paste your list, and clean it in one click.