Remove Duplicate Lines

Paste one item per line to remove repeats. The first occurrence keeps its place, so a list of labels, tasks or filenames stays in the order you collected it.

Workspace

Cleaned list

Your result will appear here.

How to use it

  1. Put each item on its own line and paste the list.
  2. Choose whether letter case and spaces at the ends should affect matching.
  3. Remove duplicates and compare the result with your original list before copying it.

Worked example

Input
Basil
Mint
Basil
Sage
Mint
Output
Basil
Mint
Sage

Frequently asked questions

Do repeated lines have to be next to each other?

No. A second occurrence matches even if several different lines come between the two copies. The first occurrence determines the item’s position.

Can I match lines with different capitalization?

Enable case-insensitive matching to treat “Mint” and “mint” as one item. Leave that option off for case-sensitive identifiers.

Will two similar names count as a duplicate?

Matching compares complete lines. “Mint” and “Mint leaves” remain separate entries. Review spelling variants manually when they refer to the same thing.