Sort Text Lines

A line sorter reorders each line of text by a rule, useful for alphabetizing lists and organizing data.

How to use the Sort Text Lines

  1. Paste your lines.
  2. Choose the sort order.
  3. Copy or download.

How it works

Alphabetical sorting uses locale-aware comparison. Numeric sorting uses the leading number on each line. Shuffling uses a secure random shuffle.

Worked example

Banana, apple, cherry sorted A–Z becomes apple, banana, cherry.

Good to know

Tick Ignore case for case-insensitive alphabetical order.

Numeric mode treats lines without numbers as 0.

Drop empty lines to tidy the result.

Frequently asked questions

Paste it and choose A → Z.

Choose Numeric so 10 comes after 9.

Yes, choose Random shuffle.