Sort list

Sort List Online — Alphabetize A–Z, Z–A, or by Length

Sort a list alphabetically, reverse alphabetically, numerically, by line length, or by last word. Paste one item per line and copy the sorted result locally.

0 lines
One item per line. Numbers, names, URLs, and codes can all be sorted.
Sort by
Options

Sorted list

0 lines0 duplicates removed0 blank lines

Paste a list above and choose a sort order. The sorted result appears here without uploading anything.

A–Z uses natural ordering, so item 2 comes before item 10. Numeric modes place non-numeric lines after the numbers; length is measured after optional trimming. Check the first few lines before replacing a source list.

Sort a pasted list without opening a spreadsheet

Paste one item per line and choose an order. The tool is useful for names, email addresses, URLs, keywords, inventory codes, reading lists, and any other line-based data where alphabetical or numeric order makes the next task easier. Results update as you type, and the sorted list can be copied or downloaded without creating a file first.

Choose the right sort order

A–Z uses locale-aware natural ordering, so item 2 comes before item 10 instead of being treated as plain text. Z–A reverses that order. Length sorts by the number of characters after optional trimming. Numeric sorts actual numbers and places non-numeric lines after them. Last word is helpful for sorting people by surname, with the full line used as a tie-breaker.

Clean while you sort

Trimming removes stray spaces from copied cells, and ignoring case keeps Apple and apple next to each other. You can remove blank lines and duplicates in the same pass. These options are visible and reversible, so the sorted output remains explainable rather than silently changing the source data.

Check the result before replacing the original

Sorting changes position but not content. Compare the first and last few lines with the source, especially when leading zeroes, mixed languages, or accented characters matter. Keep the original list until the sorted version has been reviewed in the system where it will be used.

Keep the work private

This tool runs in the browser tab you are using. No account is required and your text is not submitted to a server. The result exists only on this device, so copy or download it before closing the page.

Frequently asked questions

Does A–Z use natural number ordering?

Yes. The alphabetical modes use locale-aware natural ordering, so item 2 sorts before item 10. Use the numeric modes when the entire line is a number and you need true numeric order.

Can I sort numbers numerically?

Yes. Numeric ascending and descending modes parse commas and decimals. Lines that are not numbers are kept after the numeric values and sorted alphabetically.

Can I sort names by surname?

Use Last word mode. It compares the final word of each line, then the full line as a tie-breaker. Names with particles or multiple surnames may still need a manual review.

Can I remove duplicates while sorting?

Yes. Turn on Remove duplicates to keep the first occurrence of each value. Use the dedupe page when you need a detailed audit of repeated entries.

Is my list uploaded to a server?

No. Sorting and cleanup run in your browser. The source list and the result stay on the device.

Related tools