Line sorter

Sort lines alphabetically, by number or by length.

  • Content
  • 100% free
  • No sign-up
  • Runs in your browser
Line sorter

What is the line sorter?

The line sorter puts the lines of a text in order: alphabetically (A to Z or Z to A), by the first number in each line, by length, or simply reversed. Alphabetical sorting is natural, so item 2 comes before item 10, and works with accents and other alphabets.

Sort keyword lists, names, URLs, CSS properties or any list in one click.

How to use the line sorter

  1. 1Paste the list, one item per line.
  2. 2Choose the order and the options.
  3. 3Copy the sorted list.

Features

Natural sort

Numbers inside text are sorted by value.

Seven orders

A–Z, Z–A, numbers up and down, length up and down, reverse.

Case options

Sort with or without regard to case.

Unicode aware

Correct order for accented letters and other alphabets.

Frequently asked questions

What is natural sorting?

Sorting that reads numbers as numbers, so file2 comes before file10.

How are lines without numbers sorted in number mode?

They're placed at the end.

Can I remove duplicates as well?

Use the remove duplicate lines tool before or after sorting.

Is there a line limit?

No fixed limit; long lists are sorted in your browser.