Clean up lists by removing duplicate lines while keeping order.
🗑️ Removes duplicate lines while preserving order. Lines are compared after trimming surrounding spaces; comparison is case-sensitive ("Apple" ≠ "apple"). Great for cleaning up lists.
This tool removes duplicate lines from any list, keeping only the first occurrence of each unique line. Order is preserved — the output appears in the same sequence as the input, just without repeats.
Each line is trimmed of surrounding whitespace before comparison. So "apple " and "apple" are treated as the same line. Empty lines are removed entirely. The first occurrence is kept; later duplicates are dropped.
This tool is case-sensitive: Apple and apple are treated as different lines. If you want case-insensitive dedup, convert everything to lowercase first using our lowercase tool, then dedupe.
More tools you might find useful
Join multi-line text into a single line.
Reverse any text — fun for puzzles and ciphers.
ROT13 encode/decode with optional ROT5 digits and ROT-N custom shifts.
Capitalize the first letter of each sentence automatically.