Remove Duplicate Lines

Delete duplicate and blank lines, trim whitespace and sort a list — all locally in your browser.

100% private — everything runs in your browser

How to Use

  1. 1

    Paste the list into the left panel, one item per line.

  2. 2

    Tick the options you need: duplicates, empty lines, trimming or sorting.

  3. 3

    Copy the cleaned list from the right panel.

Examples

Dedupe a list

Input

apple, banana, apple, cherry

Output

apple, banana, cherry (1 removed)

Dedupe and sort

Input

pear, apple, pear

Output

apple, pear (1 removed)

FAQ

Does it keep the original order?

Yes. The first occurrence wins and later duplicates are dropped; sorting is a separate option you can leave off.

What counts as an empty line?

A line with no characters after optional trimming. Turning on "Trim spaces" first means whitespace-only lines are removed too.

How many lines can it handle?

Processing is linear, so tens of thousands of lines are fine. The only limit is your browser memory.

Related Tools