Remove Duplicate Lines

Clean up a list or sort lines alphabetically, with the result updated as you type.

Line options

How to clean or sort a list

Paste your list, choose the matching and sorting options you want, then copy the result. With original order selected, removing duplicates keeps the first occurrence of each line in place.

FAQ

Is my text uploaded? All processing happens in your browser. Your text stays on your device.

How do case and whitespace affect matching? Ignoring case treats Apple and apple as the same line. Ignoring leading and trailing whitespace also matches lines padded with spaces or tabs. The result keeps the original spelling and spacing of each retained line.

What counts as an empty line? A line with zero characters is empty. With whitespace ignored, lines that contain only whitespace also count as empty.

What is natural sorting? It treats digits within a line as numbers, so item2 comes before item10.

Related tools