Sort lines

Paste a list to sort it alphabetically (Aโ€“Z or Zโ€“A), in natural order so "file2" comes before "file10", by line length, reversed, or in random order.

  • ๐Ÿ”’ Runs on your device
  • โค’ 0 bytes uploaded
  • โœ“ Free, no sign-up, no watermark
Loading the toolโ€ฆ

How to use Sort Lines

  1. Paste your list, one item per line.
  2. Choose how to sort.
  3. Optionally remove empty lines or duplicates.
  4. Copy or download the sorted list.

Is it private?

Yes. Sort Lines runs entirely in your web browser: what you type into it is never sent to Nolo or anyone else, and the page's security policy only allows it to talk to nolotools.com. The site sends only two small things: the words typed in the optional search box, to find a tool, and, the first time you use a tool on a page, that tool's name for an anonymous daily count of tool use (nothing about you, your files or what you typed). Nothing is stored either: close the page and it is gone. How Nolo works.

Questions and answers

Is my list uploaded?

No. Sorting happens in your browser; nothing is sent.

What is natural sort?

Natural sort compares numbers inside text by their value, so "file2" comes before "file10". A plain alphabetical sort would put "file10" first because "1" comes before "2".

How are accents and capitals sorted?

Sorting follows the rules of your browser's language, so "รฉ" sorts next to "e". By default upper and lower case are treated as equal; turn on Case sensitive to put capitals first.

Is the shuffle really random?

Yes. It uses the Fisherโ€“Yates shuffle with your browser's cryptographic random number generator, so every order is equally likely.