Remove Duplicate Lines

Paste a list and remove repeated lines, choosing whether to keep the first or the last occurrence.

Local processing: your text is processed in your browser and never uploaded to Numelto.

What counts as "the same"

By default, two lines are the same if their text matches exactly, including case and spaces. Turn on "ignore case" or "ignore whitespace" for a more flexible match.

Privacy

The processing happens in your browser. The text is never sent to Numelto.

Example

With the list "apple, pear, Apple, pear", by default all four are kept (case matters); with "ignore case" only "apple, pear" remain. Afterward you can sort the list or find and replace values.

Case and whitespace in the comparison

By default two lines are considered duplicates only if identical character by character; you can turn on the option to ignore case or leading/trailing spaces if your list has that kind of variation.

Frequently asked questions

Related tools

We use analytics cookies to understand which calculators are useful. They are never used for advertising. More information in our privacy policy.