Sort Lines

Put any list in alphabetical order, reverse it, sort it by length or shuffle it. Numbers are sorted by value and accented letters land in the right place.

Order

INPUT

0 characters0 lines

OUTPUT

0 characters0 lines

Runs entirely in your browser. Nothing you enter is sent to a server.

How to sort lines

  1. Paste the list

    Paste names, keywords, file names or any text with one item per line.

  2. Choose the order

    Pick A–Z, Z–A, shortest or longest first, reverse or shuffle.

  3. Copy the result

    Copy the sorted list or download it as a text file.

Sorting that follows your language

Alphabetical order depends on the language: Turkish puts ç after c and ş after s, while German sorts ä together with a. The tool sorts by the rules of the language this page is shown in.

Natural number order

Plain text sorting puts “item 10” before “item 2”. With Sort numbers by value turned on, numbers inside lines are compared as numbers, so 2 comes before 10.

Frequently asked questions

Can I remove duplicates at the same time?

Use Remove Duplicate Lines first, then sort the result here.

Is the shuffle really random?

Yes. It uses your browser's cryptographic random number generator, which is suitable for draws and random assignments.

Is my list sent anywhere?

No. Sorting happens in your browser.