Line Sorter OnlineSort multiline text alphabetically, numerically, by line length, or in reverse order with optional trimming and deduplication.
en

Line Sorter Online

Sort multiline text alphabetically, numerically, by line length, or in reverse order with optional trimming and deduplication.

Output
3
20
100
alpha
beta

Quick answer

This line sorter takes pasted multiline text and reorders each line alphabetically, numerically, or by line length. It can also trim lines, remove empty lines, deduplicate repeated entries, and switch between ascending and descending order without uploading the list.

How to use

  1. 1. Paste one item per lineAdd names, IDs, numbers, URLs, keywords, log lines, or any small list that needs a stable order.
  2. 2. Pick the sort ruleUse alphabetic for text, numeric for numbers, or length when you need shortest-to-longest or longest-to-shortest output.
  3. 3. Clean and copy the resultEnable trim, skip empty lines, dedupe, or descending order before copying the sorted output.

Examples

Numeric sort

Input
20
3
100
Output
3
20
100

Numeric mode compares values as numbers instead of text.

Alphabetize words

Input
beta
alpha
Gamma
Output
alpha
beta
Gamma

Alphabetic mode uses locale-aware comparison with numeric sensitivity.

Sort by line length

Input
pear
watermelon
fig
Output
fig
pear
watermelon

Common use cases

  • Alphabetize keyword lists, labels, tags, or filenames
  • Sort numeric IDs, rankings, durations, or small data extracts
  • Deduplicate pasted lists before sharing them in a ticket or document
  • Normalize ad hoc text data without opening a spreadsheet

Edge cases

  • Alphabetic sorting is not the same as strict ASCII byte sorting
  • Numeric mode sends non-numeric lines after numeric values
  • Deduplication keeps the first matching line after optional trimming
  • Very large pasted lists depend on browser memory and may be better handled in a spreadsheet or script

Features

  • Sort lines alphabetically, numerically, or by length
  • Ascending or descending order
  • Optional dedupe and trim
  • Browser-local processing

Frequently asked questions

What sort modes are available?
Alphabetic, numeric, and length-based — each in ascending or descending order.
Can I dedupe at the same time?
Yes. Enable the dedupe toggle to remove repeated lines while sorting.
Is my list uploaded?
No. Sorting runs entirely in your browser.