๐Ÿงน Duplicate Line Remover

3 lines removed

Remove duplicate lines from a block of multi-line text, keeping only each item's first occurrence. Useful for cleaning up a list, or removing duplicates from an email list or product name list.

How to use

  1. Enter the text you want to de-duplicate, one item per line.
  2. Toggle "Case-insensitive" and "Trim leading/trailing whitespace" as needed.
  3. The de-duplicated result appears automatically. Use the "Copy" button to copy it.

FAQ

Is the original line order preserved?

Yes โ€” each item stays in the order it first appeared, and only later duplicate occurrences are removed.

Are lines that differ only by leading/trailing whitespace treated as duplicates?

With "Trim leading/trailing whitespace" on, differences in leading/trailing whitespace are ignored when checking for duplicates. With it off, whitespace differences make lines count as distinct.

Can I see how many lines were removed?

Yes โ€” the number of removed lines is shown next to the options.