Sort Text Lines

Sort lines of text alphabetically or numerically, ascending or descending, with optional de-duplication.

Tidying lists, keywords, and CSV columns into a sorted order.

How to use it

  1. Paste your list

    Enter your list with one item per line.

  2. Choose how to sort

    Pick alphabetical or numerical sorting and ascending or descending order.

  3. Copy the result

    Optionally ignore case or remove duplicates, then copy the sorted list.

Why use this tool?

Sorting a list alphabetically or numerically is a common chore that text editors make harder than it should be. This tool sorts your lines instantly with the order and options you choose.

Common use cases

Organising lists

Alphabetise names, tags, or to-do items in seconds.

Data prep

Sort CSV columns or keyword lists before further processing.

Numbers

Order a list of numbers correctly instead of as text.

Frequently asked questions

Does numerical sorting work?

Yes. Choose “numerical” to sort by value, so 2 comes before 10.

Can I remove duplicates while sorting?

Yes. Tick “remove duplicates” to keep only unique lines in the sorted output.

Is it case-sensitive?

You choose — enable “ignore case” for case-insensitive alphabetical sorting.

Related tools