Sort Lines

Sort the lines of a list or block of text alphabetically or numerically, ascending or descending. Free and private, right in your browser.

Paste in a list, log, or CSV column and get it back sorted alphabetically, numerically, in reverse, or with duplicates stripped, useful for cleaning up spreadsheet exports, alphabetizing names, or putting a set of numbers in order before you paste them somewhere else.

How to use it

  1. Paste or type your lines into the box
  2. Choose alphabetical or numeric order (and ascending/descending)
  3. Copy the sorted result back out

Frequently asked questions

Does it sort numbers correctly, or just alphabetically?
Both. Pick alphabetical sort for text (case-insensitive by default) or numeric sort to order lines by the number they contain, so 2 comes before 10 instead of after.
Can I remove duplicate lines while sorting?
Yes, there's a dedupe option that drops repeated lines after sorting, handy for cleaning up lists before a diff or import.
Will it mess up my line order for things like CSV rows or code?
It only reorders whole lines, nothing inside them, so CSV rows, log lines, or code snippets stay intact, just rearranged. Since sorting happens in your browser, nothing you paste is ever uploaded.