Sort Text Lines

Paste a list, pick an order, and get it sorted.

Advertisement In-content responsive — ad slot

Sort any list in seconds

Paste a list — names, emails, keywords, tasks — and order it alphabetically, in reverse, or by length. Optional switches let you ignore case, sort numbers naturally, remove duplicates and drop blank lines, so you get exactly the clean, ordered list you want.

The options explained

  • Ignore case — treats "Apple" and "apple" as equal when ordering.
  • Natural sort — keeps numbers in human order, so item2 comes before item10.
  • Remove duplicates — keeps only one of each repeated line.
  • Drop blank lines — strips empty lines from the result.

How to use the line sorter

  1. Paste your list, one item per line.
  2. Choose an order — A→Z, Z→A, or numeric — and toggle case sensitivity if it matters.
  3. Optionally remove duplicates and reverse, then copy the sorted result.

Everyday sorting jobs

Sorting a list by hand is tedious and error-prone. This tool alphabetises names, tasks or references in a click, orders numbers correctly (so 2 comes before 10, which a plain text sort gets wrong), tidies imports and exports before pasting into a spreadsheet, and puts bibliographies or glossaries into order. It runs entirely in your browser, so long lists sort instantly and privately.

Number the sorted output with add line numbers, or strip repeats with remove duplicate lines.

Frequently asked questions

How do I sort a list alphabetically?

Paste your list with one item per line and choose A to Z. The tool orders the lines alphabetically, and you can optionally ignore case so that "Apple" and "apple" sort together.

Can it sort numbers correctly?

Yes. Turn on natural sorting and lines containing numbers order the way people expect, so item2 comes before item10 rather than after it.

Is my list uploaded anywhere?

No. All sorting happens in your browser, so even long or sensitive lists never leave your device.