Sort Lines
Sort lines alphabetically, by length, numerically, or randomly. Remove duplicates, trim whitespace, and ignore leading articles โ all in your browser.
How to use this tool
- 1Paste your lines
Paste or type text into the input panel. Each line break separates a sortable item.
- 2Choose a sort mode
Click one of eight modes โ AโZ, ZโA, shortest, longest, numeric ascending or descending, random shuffle, or reverse order. Toggle options like remove duplicates or ignore articles.
- 3Copy or download
Click Copy to send the sorted result to your clipboard, Download to save a .txt file, or Use as Input to chain multiple sort operations.
When you need to sort lines
Cleaning up lists
Whether you have a CSV column, a list of names, or a set of URLs, sorting and deduplicating lines is one of the most common text-processing tasks. This tool does it instantly without installing anything.
Data preparation
Numeric sorting is useful when you have data like prices, scores, or IDs that need to be ordered by value rather than by their text representation. Lines without numbers fall back to alphabetical order.
Randomising order
The random shuffle uses a Fisher-Yates algorithm for truly unbiased randomisation. Use it to randomise quiz questions, raffle entries, playlist tracks, or any list where order should be unpredictable.
Get GEO & AEO tips every week
The Layman SEO newsletter. Plain English updates on what is changing in search - SEO, AEO, and GEO - and what to do about it. One email a week. Unsubscribe any time.
No spam. No paywall content. Unsubscribe with one click.