Free Sort Lines and Remove Duplicates Tool

Paste a list — names, emails, URLs, anything one-per-line — then sort it and strip the duplicates. Output updates live.

Frequently Asked Questions

How does "ignore case" affect deduplication?

With it on, "Apple" and "apple" count as the same line and only the first occurrence is kept. Sorting also becomes case-insensitive, so both spellings group together.

What is natural sort?

Number-aware ordering: file2 comes before file10, the way humans expect. Plain alphabetical sorting puts file10 first because "1" precedes "2" as a character.

How large a list can this handle?

Tens of thousands of lines sort instantly — the work happens in your browser with native JavaScript sorting, so the practical limit is your device's memory.

Which duplicate is kept?

The first occurrence in the original order is kept and later repeats are dropped. If sorting is enabled, the survivors are then sorted.