Instantly remove duplicate lines from any text. Choose case-sensitive matching, trim whitespace, ignore empty lines, or sort the result โ all in your browser.
This tool scans your text line by line and keeps only the first occurrence of each unique line. Anything that repeats is removed. It's essential for cleaning up lists, log files, email lists, product SKUs, URLs, and any dataset where the same entry appears more than once.
Apple and apple are treated as different lines. When OFF, they're considered the same and only the first occurrence is kept." Banana" and "Banana" count as duplicates.10 comes after 9, not after 1.The tool splits your input on newline characters (\n), optionally trims each line, then uses a JavaScript Set to track which lines have already been seen. Lines are added to the output only on their first appearance. If sorting is enabled, the deduplicated list is then sorted using either alphabetic comparison or natural numeric sorting.
Everything runs in your browser. Your text is never uploaded to a server, never stored, and never shared. Close the tab and it's gone.