Sort Lines

Sort a list of lines alphabetically, numerically, or by length. Alphabetical sort is case-insensitive and natural — "item2" comes before "item10".

Original0 chars, 0 lines

Alphabetical sort is case-insensitive and natural (so 'item2' comes before 'item10').

Sorted0 chars, 0 lines
Options

How to sort lines online

  1. Paste your list (or drop a file).
  2. Pick the sort mode — alphabetical, numeric, or by length.
  3. Optionally reverse the order or drop empty lines.
  4. Copy or download the sorted result.

Sort modes

  • Alphabetical (smart) — uses your locale's natural ordering with numeric awareness; case-insensitive.
  • Numeric — parses each line as a number; non-numbers fall to the bottom.
  • Line length — shortest first; ties break alphabetically.

Related tools

After sorting, you may also want to deduplicate lines or normalise the case.