Sort a list
Sort lines alphabetically, naturally or as numbers.
Bookmark this page
Keep this page handy for next time.
- On a computer
- Press Ctrl + D, or Command + D on a Mac.
- On a phone or tablet
- Open your browser's menu or Share menu and look for Add Bookmark, Bookmark or Add to favourites.
A bookmark saves the page link. Save any tool results separately.
How to use this tool
- Paste one item per line.
- Natural sorting puts file2 before file10; numeric sorting requires every item to be a number.
- Choose descending order to reverse the comparison.
Things to know
- Processing happens on your device. Check the result before replacing your original data.
- Each text input accepts up to 5 MiB. Output is limited to 25 MiB and combined text settings to 1 MiB.
- Line-based modes accept up to 100,000 lines, including a trailing empty line.
You might also need
More in text & listsUnicode inspector and normalisation
Reveal code points, invisible characters and Unicode normalisation differences.
Remove duplicate lines
Remove repeated lines while retaining their original order.
Word-frequency analyser
Count repeated words and sort them by frequency.
List shuffler
Randomise the order of lines using unbiased cryptographic randomness.
Text-column extractor
Extract numbered columns from delimited lines without damaging quoted fields.
List chunker
Split a long list into fixed-size groups or separate text files.
List comparer
Find shared, missing and combined items across two lists.
Text repeater
Repeat text a chosen number of times, with line breaks, spaces or your own separator.
Delimiter converter
Turn lines or separated values into SQL lists, arrays and custom delimited text.