Text Tools

Remove Duplicate Lines

Delete repeated lines from a list and keep the first of each. Optionally ignore case and surrounding spaces, remove empty lines and see how many lines were removed.

Your text stays in this browser. It is never sent anywhere, saved or included in analytics.

How to use

  1. Paste your list, one item per line.
  2. Choose whether case and surrounding spaces should be ignored when lines are compared.
  3. Copy the cleaned list. The number of removed lines is shown above the buttons.

Frequently asked questions

Which copy of a duplicate is kept?

The first one, exactly as you typed it. The order of the remaining lines does not change.

Can I sort the list as well?

Copy the result into the Sort Text tool to put it in alphabetical or numeric order.