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?

Putting a list in order — alphabetical or numerical — is a tiny task that desktop apps make weirdly awkward, and spreadsheets are overkill for a quick column of text. Worse, naive sorting often gets numbers wrong, ordering them as text so that "10" comes before "2". An ordered list is far easier to scan, compare, and de-duplicate. This tool sorts your lines instantly with the options you choose: alphabetical or true numerical order, ascending or descending, case-sensitive or not, and with an option to remove duplicates in the same pass. Paste a list with one item per line, pick how to sort, and copy the result. Everything runs in your browser, so even large or private lists stay on your device. No account, no limits.

Common use cases

Organising lists

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

Data prep

Sort a column or keyword list before importing or comparing it.

Numbers

Order a list of numbers by value, not as text, so 2 comes before 10.

Reference lists

Sort a bibliography, contact list, or inventory for easy scanning.

Comparing lists

Sort two lists the same way so a diff highlights real differences, not order.

Frequently asked questions

Does numerical sorting work correctly?

Yes. Choose “numerical” to sort by value so 2 comes before 10, rather than the text-order 1, 10, 2.

Can I sort descending (Z–A or high–low)?

Yes — pick descending order for reverse alphabetical or largest-first numerical sorting.

Is it case-sensitive?

Your choice — enable “ignore case” for case-insensitive alphabetical sorting.

Can I remove duplicates while sorting?

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

Does it keep blank lines?

Blank lines are grouped during sorting; pair this with the Remove Duplicate Lines tool if you want them stripped.

What about lines mixing text and numbers?

Use alphabetical for general text; numerical works best when every line is a number.

Is my data uploaded?

No. Sorting runs entirely in your browser.

Is it free?

Yes — sort as many lines as you like for free, with no account.

Related tools