One of each, in the order you want.

Lists collect copies: email addresses gathered from two sign-up sheets, product codes pasted twice, keywords from several sources. Paste your list and the repeats disappear as you type, with a count of what was removed.

The same page can sort the result, reverse it or shuffle it, and save it as a text file.

Runs in your browser. Nothing is uploaded.

More text & writing tools · All 54 tools

How to use it

  1. Paste your list into Input, one item per line.
  2. Choose the clean-up options: Remove duplicates, Ignore case, Trim spaces and Remove empty lines.
  3. Pick a Sort order, or leave it on Keep original order.
  4. Read the Result and the summary of lines in and out, then press Copy or Download .txt.
  5. Press Use as input to run another pass on the result.

Good to know

What each option does

Remove duplicates
Keeps the first copy of each line and drops later ones, so items stay in the order they first appeared.
Ignore case
Treats Apple and apple as the same line. The first spelling is the one kept.
Trim spaces
Removes spaces and tabs from the start and end of every line in the result. Even without it, lines that differ only by those outer spaces count as duplicates.
Remove empty lines
Drops blank lines, including ones that hold only spaces.
Remove every copy of repeated lines
Instead of keeping one copy, removes every line that appears more than once, leaving only the one-offs.

A worked example

Input                 Result
sam@example.com       sam@example.com
Lee@example.com       Lee@example.com
sam@example.com       ana@example.com
ana@example.com
lee@example.com

With Remove duplicates and Ignore case ticked, 5 lines go in and 3 come out. Tick Remove every copy of repeated lines as well and only ana@example.com is left, because the other two addresses each appear twice.

Sorting

  • A → Z (natural) sorts the way people expect: item 2 comes before item 10, and capitals or accents do not push words out of place. Z → A is the same in reverse.
  • Shortest first and Longest first sort by length, then alphabetically when two lines are the same length.
  • Reverse order flips the list. Shuffle puts it in random order using your browser's secure random numbers, which suits something like drawing an order of names.

Sorting happens after the clean-up, so which copy counts as the first is judged in your original order.

Limits

Lists of tens of thousands of lines work comfortably; very large pastes depend on your device's memory. A line is everything up to a line break, so several items on one line separated by commas count as a single line.

Questions.

Which copy of a repeated line is kept?

The first one. Later copies are removed and everything else stays where it was, unless you choose a sort order.

Can I find the lines that appear only once?

Yes. Tick Remove every copy of repeated lines. Any line that appears two or more times is removed completely, so only the one-off lines remain.

How do I clean a column from a spreadsheet?

Copy the column and paste it into Input, where each cell becomes one line. After cleaning, copy the Result and paste it back into the spreadsheet.

Why does item 10 come after item 2?

The A → Z sort compares numbers inside text by their value, not digit by digit, so 2 comes before 10. This is known as natural sorting.

Is the shuffle really random?

It uses the Fisher–Yates method with your browser's cryptographic random numbers, so for practical purposes every order is equally likely.

Are my lists uploaded?

No. The cleaning happens on your device, which matters for lists of customer emails or other personal details.