Sort Lines Alphabetically

Paste a list and download the same lines sorted A to Z or Z to A. Free to use without an account, email address, or payment. The result downloads immediately after processing.

Paste a list and download the same lines sorted A to Z or Z to A.

Sort any list of lines alphabetically, ascending or descending, with optional case-sensitive comparison. Paste, pick the order, download the sorted.txt.

How it works

  1. Paste your list into the editor.
  2. Pick ascending or descending order and whether the sort is case-sensitive.
  3. Process and download the sorted.txt file.

Use cases

Frequently asked questions

Is the sort case-sensitive?

By default no. Tick 'Case-sensitive' and uppercase lines sort before lowercase. Otherwise case is ignored.

Does it sort numbers correctly?

The sort is alphabetical, so '10' comes before '2'. For natural numeric sort, pad your numbers with leading zeros first.

Are duplicate lines kept?

Yes. Sorting only changes the order. To also remove duplicates, use our 'Remove Duplicate Lines' tool first or after.

How big a list can I sort?

Up to 2 MB per job, which is hundreds of thousands of lines for typical content.

Using the interactive tool

Open the canonical HTML page to provide input and generate or download a result. This Markdown alternate contains the complete descriptive and instructional content, but it does not execute the interactive interface.