✍️ Text Tools Free No sign-up Works offline once loaded

Sort Lines

Sort a list alphabetically, numerically, by length or in reverse, with optional case sensitivity.

Runs entirely in your browser. Nothing is uploaded, stored or sent anywhere.

The formula behind it

Alphabetical sorting compares code points; numeric sorting parses the leading number in each line so 10 comes after 9.

The working is shown so you can check it. If a result looks wrong, this is the first place to look.

How to use it

  1. Open the Sort Lines above. It is ready to use — nothing to install.
  2. Enter your list, sort by, ignore case.
  3. Press Calculate.
  4. Copy the result with one click, or download it where the tool produces a file.
  5. Change any value and the result updates immediately — there is no limit on how many times you run it.

About the Sort Lines

Sort a list alphabetically, numerically, by length or in reverse, with optional case sensitivity.

This is one of 107 free tools on RandomGen Tools. It sits in the text tools section, alongside word counter. Everything runs in your browser, so there is nothing to install and no limit on how often you use it.

Questions people ask

In plain alphabetical sorting it does, because '1' comes before '9'. Switch to Numeric to fix it.
No. They sort to the top with empty-string comparison. Remove them first if you want a compact list.
Not directly. Split the column into its own list first, or use a spreadsheet.

Related tools