Skip to content
Free text tool

Line sorter

This line sorter puts a list in order, one item per line. It is handy for sorting names, tags, file lists or numbers without opening a spreadsheet.

  • Runs in your browser
  • Free, no account needed
  • Copy or download the result

Your input

60 characters

Sort method
Natural puts item 2 before item 12.
Order
Ignore case

Result

Appendix
Chapter 1
Chapter 2
chapter 3
Chapter 10
Chapter 21

The short answer

Natural sorting reads the numbers inside lines as numbers, so Chapter 2 comes before Chapter 10, while plain alphabetical sorting puts Chapter 10 first. Pick the mode that matches how your list is numbered. With ignore case on, Apple and apple sort together.

Worked exampleThe six lines Chapter 10, Chapter 2, Appendix, Chapter 1, Chapter 21 and chapter 3 sort in natural order to Appendix, Chapter 1, Chapter 2, chapter 3, Chapter 10, Chapter 21.

Example

Input
Chapter 10
Chapter 2
Appendix
Chapter 1
Chapter 21
chapter 3
Result
Appendix
Chapter 1
Chapter 2
chapter 3
Chapter 10
Chapter 21

How to use the line sorter

  1. Paste your list into the One item per line box.
  2. Choose a Sort method: Natural, Alphabetical or Numbers.
  3. Set Order to Ascending or Descending, and set Ignore case.
  4. The sorted list updates as you type. Press Copy result or Download.

How it works

Natural order reads numbers inside text as numbers, so item 2 comes before item 12. Alphabetical compares character by character, so item 12 comes first.

Numbers sorts by value and needs every line to be a number such as 42, -3.5 or 1e3. A blank line, including one at the very end, causes an error.

Ignore case is on by default, so Apple and apple sort together. Accents still count as differences.

Duplicate and blank lines are kept. Lines that compare as equal stay in their original order.

Text is ordered by English alphabet rules rather than raw character codes.

Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.

Questions and answers

How do I sort a list alphabetically?

Paste the list with one item per line and choose Alphabetical or Natural. Pick Descending to sort from Z to A.

What is natural sort order?

Natural order treats numbers inside text by their value, the way people read them. File 9 comes before File 10 instead of after it.

Can it remove duplicates while sorting?

No. The sorter keeps every line. Run the Duplicate line remover first if you want each line only once.

Is my list uploaded?

No. Sorting runs in your browser tab, and the list is not sent to a server.

Last updated November 1, 2026. Maintained by SnowRock. How our tools work

All 220 SnowRock tools