Text tool

Sort Lines Alphabetically

Sort lines from A to Z or Z to A.

← Back to all tools

Your result will appear here.

How to use

  1. Enter the required information.
  2. Choose any available options.
  3. Click the button to view your result.
  4. Copy the result if needed.

This tool is free to use without registration. See our Privacy Policy · Terms.

Prepare lines for sorting

Line sorting is useful for alphabetising names, keywords, labels and simple lists. The result depends on how the tool compares characters, letter case, punctuation and numbers. If the list contains identifiers such as item-2 and item-10, ordinary alphabetical order may place them differently from the natural numeric order you expect.

Check the sorted list

For structured records, sort by a specific column in a spreadsheet or database rather than sorting each line of a text export independently.