List Sorter and Cleanup Tool
Sort text lines, remove duplicates, add numbering, and convert between line lists and comma-separated strings.
Sort
Output Format
Cleanup Options
Duplicate Lines
| Content | Count |
|---|---|
| Duplicate lines will be shown here. | |
Alphabetical sorting uses the browser's locale-specific rules for Korean (localeCompare). Unlike simple code value sorting, it naturally sorts mixed Korean, English, and numbers in alphabetical order.
To create a tag list: paste tags one per line โ remove duplicates + sort alphabetically โ set output format to "Comma list". Adding # as a prefix will format them as hashtags.
What is the List Sorter and Cleanup Tool?
Cleaning up lists of tags, keywords, or data often involves the same tedious steps: pasting items, removing duplicates, sorting them, and joining them with commas. This tool streamlines the entire process on a single screen. Paste your text to instantly sort it alphabetically, by length, or in random order. Clean it up by removing duplicates, empty lines, and extra whitespace, or add prefixes and line numbers. Easily convert between a line-by-line list and a comma-separated string, perfect for blog tags or data entry. It's free, and all operations run in your browser for complete privacy.
How to use
- Paste your text, one item per line, into the "Input" area, or drop a text file.
- Choose a sort order like "Alphabetical" or "Shortest first", or keep the "Original order".
- Under "Cleanup Options", check boxes to "Remove duplicate lines" or "Remove empty lines".
- To create a tag string, set the "Output Format" to "Comma list" and select a separator.
- Click "Copy" to get the finished text from the "Result" area.
List Sorter and Cleanup Tool guide
How this tool is used in real work, and what to watch out for.
Blog Tag Cleanup: Turn a 5-Minute Chore into a 30-Second Task
Managing tags is one of the most repetitive manual chores in blogging. You gather tags from old posts, competitor articles, and keyword tools, and you're left with a jumbled mess full of duplicates. This tool's default settings are designed for exactly that scenario.
- Paste all your collected tags, one per line. Don't worry about order or duplicates.
- Make sure "Remove duplicate lines", "Remove whitespace from start/end of each line", and "Remove empty lines" are checked (they are by default).
- Change the sort order to "Alphabetical".
- Check the "Duplicate Lines" table below to see what the duplicates were โ this is a great way to catch typos in tags.
- Change the "Output Format" to "Comma list" and copy the result into your blog's tag field.
Three Things to Check When Duplicates Aren't Removed
If lines that look identical aren't being treated as duplicates, it's usually because of a difference you can't see.
- Leading/trailing whitespace โ " Apple" and "Apple" are different strings. Enable "Remove whitespace from start/end of each line". This is especially common when pasting from Excel.
- Case โ By default, "Brunch" and "brunch" are treated as different. Enable "Ignore case when checking for duplicates" to keep only one. When this option is on, the tool keeps the version that appears first in the list, so place your preferred capitalization higher up.
- Invisible characters โ Lists copied from the web can contain hidden characters like zero-width spaces or non-breaking spaces (NBSP). If removing whitespace doesn't work, try running your list through a text-cleaning tool before pasting it back here.
Choosing a Sort Order
| Sort Order | Result | Use Case |
|---|---|---|
| Original order | Keeps the original line order. | For lists where order matters, like rankings or timelines. Use when you only need to remove duplicates or add numbers. |
| Alphabetical | Sorts from A-Z. | For tag and keyword lists. Uses the browser's locale-specific sorting rules. |
| Shortest first / Longest first | Sorts by character count. | Useful for separating short, core keywords from long-tail keywords in a list. |
| Random | Shuffles lines randomly. | For drawings or eliminating order bias. The order only changes when you click "๐ฒ Reshuffle". |
| Reverse order | Reverses the current line order. | For toggling log files or date-based lists between newest-first and oldest-first. |
Using the Result as New Input for Multi-Step Tasks
For operations that can't be done in one pass, use the "Apply result to input" button to chain them. For example, hereโs how to clean up a comma-separated string of tags:
- Paste your comma-separated list into the "Input" box and click "Comma โ Lines". This recognizes commas, semicolons, tabs, and pipes as separators.
- Apply "Remove duplicate lines" and sort the list alphabetically.
- Click "Apply result to input" to place the cleaned-up list back into the input box.
- Now you can apply a second operation, like adding a prefix or line numbers to the cleaned list.
What This Tool Can't Do
- Edit multi-column CSVs โ This tool operates on a line-by-line basis. It cannot sort or extract specific columns. Use a spreadsheet application for that.
- Find the difference or intersection of two lists โ The tool does not support finding items that are in list A but not in list B. However, you can paste both lists together and check the "Duplicate Lines" table to find the overlapping items.
- Natural sorting โ It does not compare "Item 2" and "Item 10" numerically, so "Item 10" will be sorted before "Item 2". You can work around this by padding numbers using an option like "01." in the line number format.
- Process huge files โ Since all processing happens in your browser, the tool will struggle with hundreds of thousands of lines. Files are limited to a maximum of 8MB.
Frequently asked questions
Does duplicate removal distinguish between uppercase and lowercase?
By default, yes; 'Tag' and 'tag' are considered different. To treat them as the same, enable the 'Ignore case when checking for duplicates' option.
How do I create a comma-separated tag list?
Paste tags one per line. Enable 'Remove duplicate lines' and 'Alphabetical' sort. Then set the 'Output Format' to 'Comma list' to get a ready-to-paste string.
Can I just remove duplicates without changing the list order?
Yes. Leave the sort option set to 'Original order'. The tool will apply cleanup options like duplicate removal without re-sorting your list.
Is the text I enter sent to a server?
No. This tool processes all data directly within your web browser. Nothing you type or upload is ever sent to our servers, ensuring your data remains private.