Remove Duplicate Lines
Clean up lists, logs, and exports by removing repeated lines. Choose to keep the first occurrence of each line or keep only lines that appear exactly once, and optionally compare lines case-insensitively or after trimming whitespace. The summary shows how many lines were removed and how many remain.
Examples
apple Apple banana apple
apple Apple banana
How it works
“Keep first” keeps the first copy of each line and removes later repeats, without changing the order. “Keep unique only” is stricter: it removes every line that occurs more than once, including the first copy.
| Setting | Result |
|---|---|
| Keep first | apple, Apple, banana |
| Keep first + Case-insensitive | apple, banana |
| Keep unique only | Apple, banana |
The two options change only how lines are compared. The line that is kept is written out exactly as you typed it, with its original capitals and spacing. Blank lines count as lines, so repeated blank lines collapse to one.
How to use Remove Duplicate Lines
Why use this tool
Frequently asked questions
Keep-first keeps the first time each line appears; keep-unique-only keeps lines that occur exactly once and drops anything repeated.
Yes. Enable the case-insensitive and trim toggles to treat lines that differ only by case or surrounding whitespace as duplicates.
Found a bug or have an idea?
ToolOrbit is actively developed — feedback directly shapes what gets built next.
Send feedback