Remove Duplicate Lines
Clean up lists by removing repeated lines. Paste your text and get back only the unique lines, with options to ignore case and trim surrounding whitespace before comparing. Handy for deduplicating emails, keywords, logs, and CSV columns.
- Free — no sign-up
- Private — runs in your browser
- Instant results
How to use the Remove Duplicate Lines
- 1Paste your lines. Add the text or list, one item per line.
- 2Set options. Optionally ignore case and trim whitespace when comparing lines.
- 3Copy unique lines. See how many duplicates were removed and copy the cleaned result.
Examples
Deduplicating an email list
Input
ada@example.com
sam@example.com
ada@example.com
lee@example.comResult
ada@example.com
sam@example.com
lee@example.com
(1 duplicate removed)The first occurrence of each line is kept in its original position; the repeat of ada@example.com is dropped. Order is preserved, unlike a sort-and-dedupe.
Ignoring case and spacing
Input
Apple
apple
Apple Result
Apple (2 duplicates removed)With the ignore-case and trim options on, lines that differ only in capitalization or surrounding spaces are treated as the same, leaving a single entry.
Frequently asked questions
Does it keep the original order?
Yes. The first occurrence of each line is kept in its original position and later duplicates are removed.
Can it ignore case and spacing?
Yes. Toggle the options to treat differently-cased or differently-spaced lines as duplicates.