How to remove duplicate lines
Paste or import line-based text, choose a removal mode, then select matching, blank-line, and output-order rules. The live analysis shows what matches before you process. Select Process lines, verify the separate output, and then copy or download it.
How matching works
Each physical line is one complete value. Exact matching compares every character and is case-sensitive. Ignore case and trim surrounding whitespace can group visually similar lines, but they affect only the internal comparison key. The first or last retained source line is returned unchanged. Keep last follows the order in which the retained last occurrences appeared.
Sorting and blank lines
Blank means an empty line or a line containing only whitespace. You can remove all blanks, keep a single blank, or preserve every blank. Sorting happens after duplicate and blank-line processing. A–Z and Z–A use your browser's text collation; numeric sort reads a number at the start of each line and places nonnumeric lines afterward.
