Text sorter & deduplicator — offline
Sort, dedupe, trim, shuffle, and reverse lines — all on your device.
Sort and deduplicate lines offline
The lists people need to clean up are rarely neutral: email lists, customer identifiers, exported usernames, log excerpts, internal inventories. Pasting one into an online sorter uploads the whole list — an odd trade for an operation your own machine performs instantly.
Every operation here runs on your device, live, with nothing transmitted. Paste the lines on the left, set the toggles, and copy the cleaned list from the right. It works offline, which is convenient when you are tidying a list on a plane or inside a restricted network.
Natural sort, and why alphabetical gets numbers wrong
Plain alphabetical sorting compares text character by character, so item10 sorts before item2 — because 1 comes before 2. The same effect puts v1.10.0 before v1.9.0 and scatters chapter2 somewhere below chapter11.
Natural sort recognises the digits inside the text and compares them by value, producing the order a human expects: item2, then item10. It is the right choice for anything with numbers embedded in names — file lists, version strings, ticket identifiers, chapter headings.
Combining operations in one pass
Trim whitespace, remove empty lines, deduplicate, sort, reverse, and shuffle all apply together, so a messy paste becomes a clean list in a single step rather than several round-trips through different tools.
Two details worth knowing. Trimming before deduplicating is what makes deduplication actually work — two lines identical apart from a trailing space are different strings, and trailing whitespace is invisible on screen, so it is the usual reason duplicates survive a dedupe. And shuffle is genuinely useful beyond novelty: randomising a list is how you pick a fair sample, assign a rota, or choose a winner without bias.
Related and equally local: diff checker — sort both lists first and the real differences stop hiding behind ordering — word counter, and CSV to JSON when the list is really a spreadsheet column.
How to sort and deduplicate lines of text
- 1
Paste your lines on the left.
- 2
Pick a sort order and toggles.
- 3
Copy the cleaned list from the right.
Text Sorter & Dedupe — frequently asked questions
Is my list uploaded to sort it?
No — every operation runs on your device. Customer lists and internal data stay private.
What does natural sort mean?
Numbers inside text sort by value: item2 comes before item10, which plain alphabetical sorting gets wrong.
Can I combine operations?
Yes — trim, remove empties, dedupe, sort, and reverse all apply together in one pass.