Home › Text tools › Sort Text Lines Alphabetically

Sort Text Lines Alphabetically

Sort a list of lines A-Z or Z-A instantly, privately, in your browser — with optional deduplication and blank-line removal.

What Is a Text Line Sorter?

A text line sorter (or alphabetizer) takes a list with one item per line and rearranges it into alphabetical order — either ascending (A→Z) or descending (Z→A). It compares the text of each line and swaps them into position, so a messy, unordered list becomes a clean, ordered one in a single step.

Sorting is one of the most common ways to organise data. An alphabetical sorter is handy for shopping lists, to-do lists, contact and email lists, product names in a catalogue, keywords for research, and for building alphabetical indexes and directories.

Because this tool also deduplicates and removes blank lines, you can tidy a list in one pass: delete repeats, strip empty rows, and sort what remains. The whole process runs on your device, keeps your data private, and gives you a downloadable, clean, A-Z order you can paste straight back into a document or spreadsheet.

How to Use the Text Line Sorter

  1. Paste your list into the input box (one item per line).
  2. Choose ascending (A→Z) or descending (Z→A).
  3. Optionally select dedupe, noblank, or both in the options field.
  4. Read the sorted output instantly, then copy it or clear to start over.

Example

Input:

banana
apple
cherry
apple

Sort A→Z → apple
apple
banana
cherry

With "dedupe" selected the repeats collapse and you get apple
banana
cherry
. Choose Z→A for cherry
banana
apple
.

Common Use Cases

Pro Tips

FAQ

How do I sort lines A-Z?

Paste your list into the input box and choose ascending (A→Z) or descending (Z→A). The lines are sorted instantly.

Does it run in my browser?

Yes. Everything happens locally — nothing is uploaded or stored.

Can I sort and deduplicate at once?

Yes. Choose "dedupe" or "both" in the options and lines are sorted with duplicates removed in the same pass.

Does it sort numbers correctly?

Lines are compared as text, so 10 sorts before 2. For true numeric order, format numbers with leading zeros or sort them separately.

What do the options do?

"none" leaves every line, "dedupe" removes repeats, "noblank" drops blank lines, and "both" removes both duplicates and blank lines.

Can I remove blank lines?

Yes. Choose "noblank" or "both" to strip empty lines before sorting.

Is it private?

Yes. Everything runs locally; nothing is uploaded.

What is it good for?

Alphabetising lists — shopping lists, to-dos, product names, email lists, keyword lists and indexes.

Is sorting case-sensitive?

The default sort compares text as typed, so capitalisation can affect order. Normalise to one case for a strict A-Z result.

Is it free and unlimited?

Yes — free, unlimited and with no signup.

Related text tools

Related searches

sort lines alphabetically, alphabetical order tool, alphabetize list, sort text lines, line sorter, a to z sorter, arrange names alphabetically, sort list online, dedupe and sort, alphabetical sorter

Related searches

text tools, duplicate line remover, line sorter, word counter, text case converter, find and replace text, list to csv, text cleaner, text utilities, count words online

Related tools