Numbers & text

Sort Lines

Sort a plain-text list alphabetically or numerically in ascending or descending order.

Enter your details

Free tool

Runs in your browser. Your text is not uploaded for processing. Use trusted offline software for secrets, especially when third-party advertising or browser extensions are active.

How to use this tool

Paste one item per line and choose text or numeric sorting. Text sorting compares Unicode strings with an optional case-insensitive comparison; it is not a locale-specific dictionary order. Numeric sorting requires every retained line to contain a finite number. Choose whether to drop blank lines. Newlines are normalized to LF.

A WORKED EXAMPLE

Try these values

Text sorting can place “10” before “2”. Numeric sorting puts 2 before 10 because it compares their values.

Common questions

Does it remove duplicate values?

No. Sorting preserves duplicates. Use the duplicate-line remover if needed.

Can it sort a CSV by a chosen column?

No. Each complete line is one value; CSV parsing and column sorting are different tasks.

Something doesn’t add up? Report an issue · Methods & corrections