CountKit

Text cleanup / Sort lines

Sort lines alphabetically

Sort any list line by line, A to Z or Z to A. Natural sorting puts "item 2" before "item 10", and the comparison understands accents, so é sorts next to e. You can also drop blank lines while sorting.

clean.txt

How it works

  • Paste one item per line.
  • Natural order compares numbers by value, so 2 comes before 10.
  • Sorting uses your browser's language rules for accents and special letters.

At a glance

Sort lines alphabetically
Sort lines of text alphabetically A–Z or Z–A, with natural number sorting and accent-aware comparison. Free online line sorter.
Price
Free, no sign-up
Works on
Phones, tablets and computers, in a web browser
Your data
Text is processed in your browser and is not uploaded. Your draft is saved only on your device.

Frequently asked questions

Why does 10 come before 2 in some sorters?

Plain alphabetical sorting compares character by character, and "1" is before "2". Natural number order fixes this.

How are accented letters sorted?

They sort with their base letter, using your browser's locale-aware comparison.

Can I sort and remove duplicates together?

Sort here, then paste the result into the remove duplicate lines tool, or the other way round.