Line Sorter

Line Sorter is a free text tool that runs directly in your browser with no account required.

About this tool

Sort any list of lines alphabetically from A to Z or reverse from Z to A. Empty lines are dropped along the way, so pasted lists come out clean and ready to use.

How to use

  1. Paste your list into the Lines field, one entry per line.
  2. Choose A to Z or Z to A in the Order dropdown.
  3. Copy the sorted result.

Frequently asked questions

How does the sort handle accents and mixed case?

It uses locale-aware comparison (localeCompare), so accented characters sort naturally and case differences are ordered sensibly rather than by raw character codes.

Are numbers sorted numerically?

Sorting is textual, so "10" comes before "2" unless values are zero-padded. Pad numbers (02, 10) if you need numeric order.

What happens to blank lines?

Empty lines are filtered out before sorting, so the output contains only non-empty entries.

Can I sort by a column or field within each line?

No, each full line is the sort key. For column-based sorting of tabular data, extract the column with the CSV Column Extractor first.

Does my list leave the browser?

No. Sorting is done in-page with JavaScript; nothing is transmitted or stored.

Related tools