Converter Portal
Text Tools

Sort Lines

Sort a list of lines alphabetically or numerically, ascending or descending.

Sorting a list by hand is fine for five items and painful for fifty — alphabetizing a contact list, ordering a set of file names, or arranging a list of numbers all become error-prone the moment the list grows past what you can hold in your head at once.

This tool sorts any list of lines alphabetically (ascending or descending) or numerically when your lines are numbers, since a plain alphabetical sort orders "10" before "2" (comparing character by character) which is rarely what you want for numeric data. Paste your list, choose your sort direction and mode, and get an instantly sorted result ready to copy.

How to use Sort Lines

  1. 1

    Paste your list

    Enter your list with one item per line.

  2. 2

    Choose ascending or descending

    Pick the sort direction you need.

  3. 3

    Toggle numeric sort if needed

    Turn this on when sorting numbers to avoid incorrect alphabetical ordering like 10 before 2.

  4. 4

    Copy the sorted result

    The sorted list updates live and can be copied directly.

Features

  • Alphabetical and numeric sort modes
  • Ascending or descending order
  • Instant live sorting as you edit
  • Handles lists of any length your browser can hold

Frequently asked questions

Common mistakes to avoid

  • Forgetting to enable numeric sort mode when sorting a list of numbers, producing an alphabetically-ordered (and incorrect) result.
  • Not removing duplicates before sorting when duplicates should be treated as a single entry — use the Remove Duplicate Lines tool first.
Written by Converter Portal Editorial TeamPublished March 5, 2026Last updated June 1, 2026

Get new tools in your inbox

One email a month with new tools, guides, and updates. No spam, unsubscribe anytime.