Sort Lines

Sort lines alphabetically (A–Z, Z–A), by length, or reverse the list.

Runs in your browser Free
Processed locally in your browser.

Put your lists in order

Name lists, word lists, product names, bibliographies or code lines: Sort Lines organises any list in seconds.

Sorting options

  • Alphabetical A to Z or Z to A
  • Shortest or longest lines first
  • Reverse the list as it is

Smart sorting

The tool uses natural, language-aware ordering: accented letters land in the right places and 'Chapter 2' comes before 'Chapter 10'. Sorting happens in your browser.

How to use Sort Lines

  1. Paste the list to sort.
  2. Choose the sort type.
  3. The sorted list appears instantly.
  4. Copy the result.

Why use this tool?

Sort correctly without opening a spreadsheet or word processor.

FAQ

Are numbers sorted naturally?

Yes. 'Item 2' comes before 'Item 10', exactly as you'd expect.

Are accented letters sorted correctly?

Yes, the sort is language-aware rather than a raw character-code sort.

Can I also remove duplicates?

Use Remove Duplicate Lines for that.

Related tools