100% free · No sign-up · Instant result

Duplicate-Line Remover

Remove duplicate lines from text, with options to trim whitespace, ignore case, and sort.

Remove duplicate lines from text, with options to trim whitespace, ignore case, and sort.

How to use

Each line is compared against the lines seen before it and only the first occurrence is kept. With "trim whitespace" enabled, leading and trailing spaces are removed before comparing; with "ignore case" enabled, comparison is case-insensitive. Turning off "preserve order" sorts the unique lines alphabetically.

Example

Removing duplicates from "apple banana apple" with the default options produces "apple banana" and reports 1 removed line.