Skip to content
Toolbox

Remove Duplicate Lines

Paste a list with one item per line and get the same list back without the repeats, in the original order or sorted.

Order of the result

Lines in
0
Lines out
0
Removed
0

The first time a line appears it is kept; later copies are removed. Your text never leaves this browser tab.

How to use Remove Duplicate Lines

  1. Paste your list

    Put one item on each line. Names, email addresses, web addresses, keywords and product codes all work.

  2. Set the rules

    Decide whether upper and lower case count as different, whether spaces around a line are ignored when comparing, and whether empty lines should go too.

  3. Copy the cleaned list

    The result shows how many lines went in, how many came out and how many were removed. Choose a sort order if you want the list alphabetical, then press Copy.

Example

A list with repeats

Input

red, blue, red, green, blue, Red (one per line, case sensitive)

Result

  • red
  • blue
  • green
  • Red
  • 6 lines in, 4 lines out, 2 removed

Common uses

  • Mailing and contact lists

    Merge two lists of email addresses and make sure nobody receives the same message twice.

  • Keyword research

    Combine keyword exports from several tools and drop the repeats before you group them by topic.

  • Log files and data exports

    Reduce a long list of error messages, order numbers or IDs to its unique values.

  • Shared lists

    Tidy a shopping or to-do list that grew because many people kept adding to it.

Tips for better results

  • Leave “Case sensitive” on when capitalization matters, such as for file names. Turn it off for names and email addresses, where Anna and anna mean the same thing.
  • Switch on “Trim spaces” when a list comes from a spreadsheet. A trailing space makes two identical-looking lines different.
  • Sorting is alphabetical and understands numbers, so item 2 comes before item 10.
  • The first copy of each line is the one that stays. Keep the original order option selected if the sequence of your list matters.

Frequently asked questions

Which copy of a duplicate line is kept?

The first one. Later copies are dropped, so the list keeps the order in which items first appeared unless you choose to sort it.

Does it treat Apple and apple as the same line?

Only if you turn off “Case sensitive”. With that option on, they count as different lines and both stay.

How many lines can I clean at once?

The box accepts up to one million characters, which covers lists of tens of thousands of lines.

Can it remove blank lines at the same time?

Yes. Tick “Remove empty lines” and every line that is empty or holds only spaces is dropped.

Is my list stored or sent anywhere?

No. The cleaning happens inside your browser, so private lists such as customer emails never leave your device.

Last updated: