Sort Lines
Sort the lines of any list or text alphabetically, naturally, by length, or shuffle them — privately in your browser.
Result
Need to alphabetize a list of names, tidy up a file of keywords, or put log entries back in order? Sorting lines by hand is tedious, and spreadsheets are overkill for a quick one-off job — especially when the list contains numbers that plain alphabetical sorting scrambles.
This tool sorts the lines of any pasted text in one click and keeps everything on your device: the browser does all the work, so confidential lists never travel to a server. Paste the text, pick a mode, and copy the ordered result straight back into your document, code editor, or spreadsheet.
Eight modes cover the common cases: alphabetical A to Z or Z to A with locale-aware comparison, natural sorting that understands numbers (so "item2" comes before "item10"), ordering by line length in either direction, a random shuffle for picking winners or randomizing playlists, and a simple reverse of the current order.
Fine-tune the comparison to match your data: ignore letter case so "Apple" and "apple" sort together, trim surrounding spaces so indented lines are compared by their content, and optionally remove empty lines so the output is a clean, gap-free list.