Remove Duplicate Lines

Delete repeated lines from a list, remove empty lines and sort what is left.

Line breaks
Lines

How to use Remove Duplicate Lines

  1. Paste your list, one item per line.
  2. Keep "Remove duplicate lines" ticked and choose whether upper/lower case should be ignored.
  3. Optionally sort the lines, then copy or download the cleaned list.

About this tool

Merging email lists, keyword exports or product codes almost always leaves repeats. Paste the list here to remove duplicate lines instantly: the first copy of each line is kept in its original order, and every later copy is deleted. A counter shows how many lines were removed.

By default the comparison ignores upper and lower case and spaces at the ends of lines, so "Apple" and "apple " count as the same entry – untick the option if case matters. You can also delete empty lines, sort lines alphabetically (A to Z or Z to A), sort by number or by length, reverse the order or shuffle it, leaving only unique lines. Large lists of tens of thousands of lines are handled in a moment, and nothing leaves your browser.

Frequently asked questions

The first one. Later repeats are deleted and the remaining lines stay in their original order unless you choose a sort option.

Yes. Pick a sort order such as A → Z – the list is deduplicated first and then sorted.

Hundreds of thousands. Everything runs in your browser, so the limit is your device memory, not an upload size.

No – it compares whole lines. To dedupe words, put one word per line first (for example by replacing spaces with line breaks in a text editor).