Working tool

Remove Duplicate Lines

Remove duplicate lines from pasted text while keeping the first or last occurrence in order. Your text is processed locally in your browser.

Primary toolProcessed locally in your browser
MatchingExact case is safest. Unicode matching keeps the retained line unchanged.
WhitespaceChanges matching and output; internal spaces stay unchanged.
Blank linesApplied after trimming when trimming is enabled.
RetentionThe retained occurrence determines its output position and original form.
6 lines
Example ready. Run the tool to verify the result.
5 lines
Copy writes the result to your device clipboard.
6 input lines1 duplicates removed5 output linesRetained order preserved