List Sorter and Deduplicator
Paste a list, then sort the lines, remove duplicates, and tidy them up in one click.
This tool runs entirely in your browser. Your list is never uploaded anywhere.
How to use this tool
Paste or type your list into the box, putting one item on each line. Pick a sort order from the dropdown: alphabetical, reverse alphabetical, or numeric for lists of numbers. Then choose the cleanup options you want. By default the tool removes duplicate lines, trims the spaces around each line, and drops empty lines. Tick "Convert to lowercase" if you want everything normalized to lower case before sorting. Click "Clean list" and the result appears below, along with a count of how many duplicate lines were removed. Use the copy button to grab the finished list.
How it works
duplicates removed = lines in (after blanks removed) - unique lines kept
The tool splits your text on line breaks into separate items. Each option is applied in a sensible order: spaces are trimmed first, lowercasing is applied next, empty lines are dropped, then duplicates are removed while keeping the first time each value appears. Finally the surviving lines are sorted. Alphabetical sorting uses a locale-aware compare so it matches the order you would expect in English. Numeric sorting reads each line as a number and orders by value, so 9 comes before 10 instead of after it.
A real example
Suppose you paste these six lines: banana, apple, cherry, apple, banana, cherry. With "Remove duplicate lines" on and sort set to A to Z, the tool keeps three unique lines and reports three duplicates removed. The output becomes: apple, banana, cherry. If instead you had a list of numbers such as 10, 2, 33, 4 and chose numeric low to high, the result would be 2, 4, 10, 33 rather than the text order 10, 2, 33, 4.
Common questions
Does this remove duplicates list items even if they are not next to each other?
Yes. Deduplication checks the whole list, not just neighboring lines. The first occurrence of each value is kept and every later copy is removed, no matter where it sits.
Is the duplicate check case sensitive?
By default yes, so "Apple" and "apple" count as two different lines. Turn on "Convert to lowercase" first if you want those treated as the same item before duplicates are removed.
How does numeric sort handle lines that are not numbers?
When you pick a numeric sort, any line that cannot be read as a number is treated as the highest possible value and pushed to the end, so your real numbers stay in clean order at the top.
Can I sort numbers list and text the same way?
Use alphabetical sort for text and numeric sort for numbers. Alphabetical order would place 10 before 2 because it compares character by character, which is why a dedicated numeric option exists.
Is my data safe?
Yes. Everything happens locally in your browser using plain JavaScript. Nothing is sent to a server, so your list never leaves your device.