MinifyPic

Sort Lines

Alphabetise a list A–Z or Z–A, sort by line length, order numbers properly, or shuffle everything at random.

FreeMultiple modesInstant
Loading tool…

How it works

A compact workflow from input to download.

1

Paste your lines

Paste any list with one item per line — names, tasks, keywords, references.

2

Pick a sort order

Choose alphabetical ascending or descending, by length, or a random shuffle.

3

Copy the sorted list

Copy the reordered list straight to your clipboard.

Frequently asked questions

How are numbers sorted?
Plain alphabetical sorting treats text character by character, which puts '10' before '9' because the character '1' comes before '9'. That is correct alphabetically and almost never what you want for numbers, so use the numeric mode when your lines start with numbers and you want 2 to come before 10.
Is the sort case-sensitive?
By default the sort is case-insensitive, so 'apple' and 'Apple' sit next to each other rather than in separate blocks. That matches what people usually mean by alphabetical order — a case-sensitive sort in most programming languages puts every capital letter before every lowercase one, so 'Zebra' would come before 'apple'.
What is the shuffle mode for?
Randomising a list is genuinely useful: picking a random running order for presentations, randomising the order of quiz questions or survey options to avoid position bias, drawing names, or simply breaking up a list that has an unwanted ordering baked into it.
Is my text sent to a server?
No. Every transformation runs in JavaScript inside your own browser tab. Your text is never uploaded, logged or stored, and it disappears the moment you close the page — so it is safe to paste in things you would not want to hand to a stranger's server.

Alphabetical is not one thing

It is tempting to think alphabetical order is obvious and universal, and it is neither. Computers sort by character code, which means every uppercase letter sorts before every lowercase one — so a naive sort puts 'Zebra' ahead of 'apple', which is technically consistent and clearly not what anyone wanted. Accented characters raise the same question with no single answer: should 'é' sit with 'e' or after 'z'? French says with 'e'; some Scandinavian alphabets put their accented letters firmly at the end, after 'z', and are quite right to. Numbers embedded in text are the most common trap of all, which is why 'file10' sorts before 'file9' in almost every file manager you have ever used. Knowing which sort you are getting is the difference between a list that looks right and one that quietly is not.

Sorting as a diagnostic, not just a tidy-up

Sorting a list is one of the fastest ways to see what is actually in it. Duplicates that were scattered through a thousand lines become adjacent and instantly obvious the moment you sort. Typos surface, because 'Smith' and 'Smtih' land nowhere near each other and the odd one out stands proud. Inconsistent formatting reveals itself — all the entries that were entered with a leading space cluster together at the top, and every date typed in the wrong format sorts into its own strange block. Length sorting exposes truncated entries and stray blank lines. Before you analyse a list, sort it and look at it; the anomalies will announce themselves without you having to hunt for them.