Sort Lines and Reverse Text

Paste a list and sort it in one click, or reverse and shuffle it.

How to sort a list

  1. Paste your list, one item per line.
  2. Pick an option: Sort A to Z, Sort Z to A, Sort numbers, By length, Reverse lines, Reverse text or Shuffle.
  3. Copy the result.

Good to know

Sorting ignores capital letters by default, so “apple” and “Banana” are ordered by their letters. Turn that option off to put capital letters first, the way computers sort by default. Number sorting understands decimals and commas, and puts lines that are not numbers at the end.

Reverse text turns the whole text around, character by character, so “Hello” becomes “olleH”. Shuffle puts the lines in a random order every time you press it. Use “Remove empty lines” to clean up blank lines first.

Frequently asked questions

How do I sort lines alphabetically?

Paste your list and press “Sort A to Z”. Press “Sort Z to A” for the opposite order.

Can I sort numbers correctly?

Yes. Use “Sort numbers”. Plain alphabetical sorting would put 10 before 2, but number sorting puts 2 before 10.

Is my list uploaded?

No. Everything happens in your browser.

More free tools