Remove Duplicate Lines
Runs in your browserStrip duplicate lines from a list while keeping the order you choose.
Input
Result
What is a Remove Duplicate Lines?
Deduplicating a list — email addresses exported from two systems, log lines, a list of URLs — comes up constantly, and doing it by eye is error-prone the moment the list passes a few dozen lines. This tool keeps one copy of each distinct line and discards the rest, with control over exactly what "distinct" means for your case.
The two toggles matter more than they look. Case-sensitive comparison treats "Example.com" and "example.com" as different lines; most real-world deduplication (URLs, emails, tags) wants that off. Trimming whitespace catches the case where two lines are identical except for a trailing space that's invisible in a normal text editor — otherwise those show up as "different" for no visible reason.
How to use it
- Paste your list, one item per line.
- Toggle case-sensitive comparison and whitespace trimming to match what should count as a duplicate.
- Choose whether to keep the first or last occurrence of each duplicate.
- Optionally sort the result alphabetically.
- Copy the deduplicated list — the count of lines removed is shown above the result.
Example
apple
banana
Apple
apple
cherryapple
banana
cherry