≠
Runs in your browserNothing is uploadedText

Remove Duplicate Lines

Delete repeated lines from a list, with options to ignore case and stray spaces, drop empty lines and keep the original order.

Loading tool…
Short answer

Remove Duplicate Lines deletes repeated lines from any list and keeps the first copy of each. You can ignore differences in upper and lower case and stray spaces, drop empty lines, and keep the original order or sort what remains. It runs in your browser.

What counts as a duplicate line?

Exact and loose matches

By default "Apple", "apple" and " apple " are treated as the same line, because case and surrounding spaces are ignored. Turn those options off and only lines that match character for character are removed.

Why use Remove Duplicate Lines?

  • Clean a mailing or keyword list. Lists merged from several sources are full of repeats. Paste them in and get each entry once.
  • See how many were removed. The result says how many lines were kept and how many were dropped, so you know the size of the clean list.
  • Private by default. Customer lists and email addresses stay in your browser. Nothing is uploaded.

How to use Remove Duplicate Lines, step by step

Remove Duplicate Lines in PrintxPDF with a file loaded, options on the right and the run button below
Remove Duplicate Lines with a file loaded: the steps below follow this screen.
  1. Paste your list into Remove Duplicate Lines. Put one item on each line. Thousands of lines are fine.
  2. Choose how strict to be. Decide whether case and spaces matter, whether to drop empty lines, and whether to keep the original order.
  3. Copy the clean list. Use Copy text, or sort it afterwards with Sort Lines.

Frequently asked questions

Which copy is kept?

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

Does it change the lines it keeps?

Only if spaces are ignored, in which case the kept lines are trimmed too. Upper and lower case are never changed.

Can it find duplicates inside a line, such as repeated words?

No. It compares whole lines. To count repeated words, use the Word Frequency Counter.

Looking for the long version? The guides cover each of these jobs in depth.