Skip to content
MyDailyTool

Remove Duplicate Lines

Remove duplicate lines from any list or text block while preserving original order. Optionally trim whitespace and ignore case before deduplication. Results update instantly.

0 duplicates removed

How to use the remove duplicate lines

Paste a list. Duplicates after the first occurrence are removed; original order is preserved.

Formula & explanation

Maintains a Set of seen keys; first occurrence wins. Optional trim and case-insensitive matching.

Examples

Removing duplicates from a list of email addresses, log entries, or config keys.

Frequently asked questions

Does removing duplicates change the order of the remaining lines?
No. The original order is preserved — only the second and subsequent occurrences of a duplicate are removed, keeping the first one in place.
What does the 'Trim whitespace' option do?
It strips leading and trailing spaces from each line before comparing, so ' apple' and 'apple ' are treated as the same entry even though they look different.
Can I remove duplicates case-insensitively?
Yes. Uncheck Case sensitive and entries like 'Apple', 'apple', and 'APPLE' will all be treated as the same value.
How do I remove duplicate words (not lines)?
Put each word on its own line first — for example by replacing spaces with newlines in a text editor — then paste the result here.

Related text & string tools