About this tool
Sort, reverse, shuffle and remove duplicate lines from any list, with case and blank-line options.
Line Sorter and Deduplicator cleans up any list you paste into it: sort A-Z or Z-A, use natural order so item 2 comes before item 10, sort by line length, reverse the order or shuffle it, and remove duplicate or blank lines in the same pass. You can ignore case, trim stray spaces, keep only the unique lines or keep only the repeated ones. Handy for marketers cleaning keyword lists, developers tidying config files and anyone deduping an email or SKU export.
Open Line Sorter and Deduplicator on AltFTool — it loads instantly in your browser.
Paste or type the text you're working with.
Choose how it should be transformed or analyzed.
Copy the finished text into your document or post.
Sorting uses your browser's collator, so numbers compare by value and accented words sort like a dictionary.
Keep first, keep last, keep only unique lines, keep only repeated lines, or leave duplicates untouched.
The random order is seeded, so the result stays put while you tweak other options and only changes when you ask.
You choose. 'Keep first' preserves the earliest copy of each line, 'keep last' preserves the final one — useful when later rows in an export hold the newer data.
Natural order reads embedded digits as numbers, so item 2 sorts before item 10. Plain alphabetical sorting compares character by character and puts item 10 first because 1 comes before 2.
No. Sorting, deduplication and shuffling all run in your browser, so customer lists and internal exports never leave your device.
With it on, Apple and apple are treated as the same line, so only one survives deduplication and the sort ignores capitalisation. Turn it off when case is meaningful, such as with code identifiers.