Sort Lines

Paste a list and put it in order. Sort the lines alphabetically from A to Z or Z to A, choose whether upper and lower case count as different, and drop empty lines along the way.

Order
Options
Nothing to sort yet.

Put any list in alphabetical order

Paste a list with one item per line and get it back sorted. Choose ascending order (A to Z) or descending order (Z to A), decide whether capital letters should be treated separately, and optionally strip out blank lines so your list is clean. It's handy for tidying names, words, imports, CSV columns or any list you have on hand. Everything is sorted on your own device, so your text is never uploaded.

How to sort your lines

  1. Paste your text. Put one item on each line.
  2. Choose the order. A to Z for ascending, Z to A for descending.
  3. Set the options. Turn on case-sensitive sorting or remove empty lines if you need to.
  4. Copy or download. Take the sorted list with the copy button, or save it as a text file.

The options explained

  • A → Z sorts from the start of the alphabet down; Z → A reverses it.
  • Case-sensitive treats upper and lower case as different, so lines starting with a capital letter are grouped apart from lower-case ones. With it off, Apple and apple sort together.
  • Remove empty lines drops blank lines (and lines with only spaces) before sorting, so they don't collect at the top or bottom.

Frequently asked questions

Is my text sent anywhere?

No. The sorting happens in your browser with plain JavaScript. Your text is never uploaded or stored on a server, which keeps it completely private.

What is the difference between case-sensitive and case-insensitive sorting?

With case-insensitive sorting (the default), Banana and banana are treated as the same for ordering. With case-sensitive sorting on, capitalisation is taken into account, so upper-case and lower-case versions are ordered separately.

Does it keep duplicate lines?

Yes. Sorting only reorders your lines, so duplicates stay. If you want to remove duplicates, use the Text Cleaner tool, then sort the result here.

How are numbers and symbols sorted?

Lines are compared in standard alphabetical order for your language, which generally places symbols and numbers before letters. It sorts character by character, so "10" comes before "2" because it compares the "1" first.

Is it really free?

Yes, it is free with no sign-up, no watermark, and no limits.

Copied