Remove Duplicate Lines
Remove duplicate lines from any list in seconds, along with blank lines and stray spaces, then sort it alphabetically, by number or by length. Handles hundreds of thousands of lines.
Remove Duplicate Lines tool
Remove duplicates and blank lines, trim spaces, sort A–Z, by number or length.
Handled on your device, so your files stay private.
Remove Duplicate Lines at a glance
Strip repeated lines from any list, drop blank lines, trim spaces and sort A to Z, by number or by length. Shows how many were removed. Free and private.
- Cost
- Free to use, with no account, watermark or usage cap.
- Privacy
- Processing happens on your device; nothing is sent to our servers.
- Devices
- Up-to-date Chrome, Edge, Firefox or Safari on computers, Android phones and iPhones.
- Last updated
Removing duplicate lines, step by step
- Paste your list with one entry per line, or open a text or CSV file.
- Duplicates disappear immediately; the first occurrence of each line is kept.
- Set options such as Ignore upper/lower case, Trim spaces, Remove empty lines and the sort order.
- Copy the cleaned list or save it as a text file.
Cleaning options
- Ignore upper/lower case: Apple and apple count as the same line.
- Trim spaces from the beginning and end of each line, so "apple " matches "apple".
- Remove empty lines.
- Sort A to Z, Z to A, by number, by length, in reverse, or shuffled at random.
What people use it for
Clean up email and phone lists before an import, strip repeated keywords for SEO and ad campaigns, dedupe product codes and URLs, merge lists from several places, or shuffle a list of names to pick a random winner.
Your text stays private
Lots of online text utilities send whatever you paste to their servers. These run entirely in your browser, so contracts, essays, customer lists, passwords and source code never leave your device. Nothing is saved, and you need no account.
Frequently asked questions
Which duplicate is kept?
The first one. Later repeats are removed and the original order stays unless you choose a sort.
Can it ignore capital letters?
Yes. Tick Ignore upper/lower case and lines that differ only in capitalisation are treated as duplicates.
Does it sort numbers properly?
Yes. Sort by number puts 2 ahead of 10. Sort A to Z also uses natural ordering, so item2 comes before item10.
Can I use it with spreadsheet columns?
Yes. Copy a column from Excel or Google Sheets, paste it here, clean it up and paste it back.
Does my text get uploaded?
No. Everything happens in your browser on your own device. Your text is never sent, logged or saved.