List Sorter and Deduplicator
Sort and clean one-item-per-line lists.
Sort and clean a list
Processed list
- Input lines
- —
- Output lines
- —
- Duplicates removed
- —
- Blank lines removed
- —
Your entries and results stay in this browser. This tool does not send, save, or add them to the page address.
How to sort and clean a list
Enter one item per line. Choose alphabetical, natural-number, length, or original-order processing. You can reverse the selected ordering, trim surrounding whitespace, remove empty lines, and remove duplicates.
The result summary reports input lines, output lines, blank lines removed, and duplicate lines removed. Copy the processed result when it matches your intended rules.
Sorting and duplicate rules
Natural sorting places embedded numbers in human-expected order. Length sorting uses character count and alphabetically orders ties. Selecting original order performs cleanup without reordering retained items.
Duplicate removal happens before sorting and keeps the first matching line. Case-insensitive matching is the default; tick Treat letter case as different to make Leaf and leaf two separate items.
Trimming runs before both cleanup steps, so it changes what counts as a duplicate and what counts as blank. With trimming on, apple and apple are duplicates and a whitespace-only line counts as a blank line; with it off, neither is true. Duplicates removed and Blank lines removed always sum to the difference between input and output lines.
Sorting itself ignores case and accents, so Apple, apple, resume, and résumé compare as equal and keep their input order relative to each other. That is independent of the duplicate setting, which affects only which lines are removed.
Reverse order applies to the sorted result. It is unavailable when you keep the original order, because there is no sort to reverse.
Privacy and limitations
Processing occurs locally in the browser, but sensitive data may still be exposed through the device, clipboard history, browser extensions, screenshots, or other software. Do not paste secrets into an environment you do not trust.
Sorting requests a fixed English collation rather than your device’s language, which is designed to provide consistent English-language ordering. Browser and collation-data versions can still differ, and the result may not match a database’s collation or another language’s alphabet. Visually identical Unicode text can contain different underlying code points and may not deduplicate. Length sorting counts UTF-16 code units, so an emoji counts as two.
Each physical line is one item. This tool does not parse CSV quoting, multiline fields, columns, or custom separators.
Frequently asked questions
What is natural sorting?
Natural sorting recognizes embedded numbers, so item 2 sorts before item 10 instead of after it.
Which duplicate is kept?
The first occurrence is retained before sorting. Later matching lines are removed.
What does case-insensitive duplicate removal do?
It treats lines such as Leaf and leaf as duplicates while preserving the spelling of the first occurrence.
Is sorting identical in every language and browser?
The tool requests a fixed English collation rather than your device's language, which is designed to provide consistent English-language ordering. Browser and collation-data versions can still differ, and the result may not match another language's alphabet or a database's collation.
