Sort Lines Alphabetically

Paste any list and sort it alphabetically, numerically, or by line length — with options for case sensitivity and whitespace.

Runs entirely in your browser — your text is never uploaded

Result · 0 lines

How to use the sort lines alphabetically

  1. Paste your lines into the input.
  2. Choose a sort order.
  3. Toggle ignore case, trim lines or remove blanks as needed.
  4. Copy the sorted result.

Examples

Input

banana / apple / cherry

Result

apple, banana, cherry

Input

10 / 2 / 33 (numeric)

Result

2, 10, 33

About the sort lines alphabetically

Alphabetical sorting compares text character by character, which means “10” sorts before “2”. Numeric sorting reads the leading number in each line instead, which is what you usually want for measurements, prices and IDs.

Sorting by length is a quick way to spot outliers in a list — an unusually long line is often a formatting mistake.

Frequently asked questions

Does sorting remove duplicates?

No. Use the remove duplicate lines tool first if you want a unique, sorted list.

How are non-numeric lines handled in numeric sort?

Lines without a number are grouped at the end in their original order.