Line Sorter
Sort, reverse, shuffle, and clean up the lines of your text in one click.
Input Text
0 lines
0 words
0 characters
Sort Options
Free Online Line Sorter Tool
Line Sorter lets you organize, clean up, and rearrange any list of lines in seconds. Paste your text, click a button, and get the result instantly - no installation needed.
What can you do with it?
- Sort A-Z / Z-A - alphabetically order your lines, with an optional natural sort so "Item 2" comes before "Item 10".
- Reverse - flip the order of your lines without sorting them.
- Shuffle - randomize the order of your lines, useful for randomizing quiz questions, giveaways, or playlists.
- Add Line Numbers - prefix every line with its position for quick reference.
- Remove Empty Lines - strip out blank lines left behind from copy-pasting.
- Trim Whitespace - remove leading and trailing spaces from every line.
- Remove Duplicates - keep only the first occurrence of each line.
Case insensitive and natural sort options
Enable Case insensitive to ignore letter casing when sorting or removing duplicates, so "Apple" and "apple" are treated the same. Enable Natural sort so lines containing numbers are ordered the way a human would expect (2, 10, 21) instead of the way a computer normally would (10, 2, 21).
This tool is completely free, works entirely in your browser, and nothing you type is ever uploaded anywhere.