List Cleaner
Clean up any list with multiple options: remove duplicate items, trim whitespace, remove empty lines, sort alphabetically, and convert to lowercase.
What Does This Tool Do?
When you have a messy list — maybe copied from a spreadsheet, gathered from multiple sources, or pasted from a document — it often needs cleaning up: extra spaces around items, duplicate entries, empty lines, inconsistent capitalization. This tool applies all the cleanup operations you choose in one click.
Key Features
How to Use This Tool
- Paste your list (one item per line) into the Input box.
- Check the operations you want to apply (trim, remove empty lines, remove duplicates, sort, lowercase).
- Click Clean to apply all selected operations at once.
- Copy the cleaned list from the Output box.
How It Works
Each selected operation is applied sequentially to the list. Trimming removes leading and trailing whitespace from each line. Empty line removal filters out blank entries. Deduplication uses a Set to keep only first occurrences. Sorting uses locale-aware comparison. Lowercase converts all items.
Common Use Cases
Frequently Asked Questions
What order are operations applied?
Trim is applied first, then empty lines are removed, then lowercasing, then deduplication, then sorting. This order ensures operations work correctly together.
Can I sort numerically as well as alphabetically?
The current sort uses alphabetical (locale-aware) ordering. For numeric sorting, use the Sort Numbers tool.
Related Tools
Link to This Tool
Copy and paste the code below to link to this tool from your website: