Line Tools
Remove duplicate lines, sort A–Z or naturally, trim, shuffle
Input
Result
Order of steps: trim → remove empty lines → remove duplicates (keeps the first one) → sort. Natural sort compares numbers by value, so item2 comes before item10. Your text never leaves the browser, and share links only carry the options.
How to use Line Tools
- Paste one item per line to remove duplicates, empty lines and leading/trailing spaces in one go.
- Sort A to Z, Z to A, by length, or naturally (item2 before item10), or reverse and shuffle the list.
- Shows the line count before and after, and lets you copy the result right away.
- Your list never leaves the browser, and share links only carry the options.
Frequently asked questions
How do I remove duplicate lines?
Duplicate removal is on by default: paste your list and only the first occurrence of each line is kept, with the line count before and after. The five lines apple, banana, apple, Apple, ' banana' become 4, and with 'Ignore case' and 'Ignore leading/trailing spaces' turned on they become just apple and banana.
How is natural sort different from A–Z?
A–Z compares character by character, giving item1, item10, item2, while natural sort compares numbers by value, giving item1, item2, item10. Use it for numbered file names or lists, such as file1.txt, file2.txt, file10.txt.
Does A–Z sorting care about upper and lower case?
No. It sorts alphabetically regardless of case, so 'cherry, Banana, apple' becomes apple, Banana, cherry, and Z–A gives the reverse. You can also sort by length, reverse the order or shuffle.
Can it clean up blank lines and extra spaces?
Turn on 'Trim each line' and 'Remove empty lines'; lines with only spaces count as empty. The steps run in this order: trim, remove empty lines, remove duplicates, then sort. Your text never leaves the browser, and share links only store the options.