Sort Lines

Sort text lines alphabetically, by number, length or randomly. Free, no sign-up, your text stays on your device.

🔒 100% private — processing happens in your browser. Nothing is uploaded.

How to sort lines of text

  1. Paste the list.
  2. Choose A→Z, Z→A, numbers (natural), shortest or longest first, reverse or shuffle.
  3. Tick case-sensitive, remove duplicates, remove empty lines or trim spaces.
  4. Copy the sorted list.

Tidy any list

Sort names, emails, product codes or keywords in seconds. Natural number sorting puts “item 2” before “item 10”, which plain sorting gets wrong. Shuffle randomly is handy for draws and quiz questions.

Your text never leaves the browser.

Questions and answers

What is natural sorting?

It sorts numbers by value, so 2 comes before 10.

Can I remove duplicates at the same time?

Yes, tick Remove duplicates.

Can I sort a column from Excel?

Yes, paste it — each cell becomes a line.

Is it free?

Yes, no sign-up.