Tooleem
TextThis tool runs in your browser. No files or text are sent to our servers.

Sort Lines Alphabetically

Sort a list A-Z or Z-A, with a numeric mode that puts item 2 before item 10. Trim spaces, drop blanks and remove duplicates in the same pass.

Order
Options
Quick examples

Your text stays in the browser and is never sent to a server. This tool only orders lines using Intl.Collator — it does not spell-check, translate, or run any AI model.

Share toolWhatsApp
Keep going

Try another tool

Picked to go with this one

Paste a list and get it back in order. Alphabetical A to Z or Z to A, with a numeric mode that puts item 2 before item 10 instead of after it, which is where plain alphabetical sorting normally goes wrong. You can trim stray spaces before comparing, drop blank lines and remove duplicates in the same pass. Sorting follows the reading locale rather than raw character codes, so accented and non-Latin names land where a reader would expect rather than where their byte values fall. Everything runs in your browser — no spreadsheet, no account, and the list never leaves your device.

01

How to use this tool

  1. 01Paste your listOne item per line. There is no length limit worth worrying about.
  2. 02Pick a direction, then adjustA to Z is the default. Turn on numeric mode if your lines contain numbers, and trim spaces if the list came from a copy-paste.
  3. 03Copy the resultThe counts below tell you how many lines went in and came out.
02

When is this useful?

  • Alphabetising a list of namesClass registers, attendee lists, contact exports — anything that arrived in the order it was typed rather than the order you need.
  • Ordering files or items that contain numbersNumeric mode is the reason this exists. Without it, item 10 sorts before item 2 because it compares character by character.
  • Tidying a list before pasting it somewhere elseSort, drop blanks and remove duplicates in one pass, then paste the clean version into a document or form.
03

Examples

  • Why numeric mode mattersSorting "item 10, item 2, item 100, item 1" alphabetically gives item 1, item 10, item 100, item 2 — correct character by character and useless to a human. Numeric mode reads the digits as numbers and gives item 1, item 2, item 10, item 100.
  • Sorting and deduplicating togetherA list of apple, banana, apple, cherry, banana sorted with duplicates removed returns apple, banana, cherry. Duplicates are removed after sorting, so the result is both ordered and unique.
04

Tips for a better result

  • Trim before sortingA leading space sorts before every letter, so one untrimmed line can appear stranded at the top for no visible reason.
  • Case sensitivity changes where capitals landWith it off, Apple and apple sit together. With it on, capitals group separately — which is what you want for codes, and rarely what you want for names.
05

Why alphabetical sorting gets numbers wrong

A plain alphabetical sort compares text one character at a time, so it compares the "1" of "10" against the "2" of "2", decides 1 comes first, and stops. That is why file lists and numbered items come back in an order no person would choose. Numeric mode tells the comparison to read consecutive digits as a single number, so 2 sorts before 10 and 10 before 100. It is the single most useful option here and the reason a dedicated tool beats a quick spreadsheet sort for mixed text-and-number lists.

06

Sorting respects the language, not the byte values

Ordering text is not the same as ordering character codes. Accented letters, Hebrew, Indonesian and English each have conventions about where characters belong, and a naive comparison places anything outside plain ASCII after everything else. This tool uses the browser's own collation for the reading locale, so names with accents sort next to their unaccented equivalents rather than being exiled to the bottom of the list. The trade-off worth knowing: the same list can legitimately sort differently in different languages, because the languages genuinely disagree.

07

Nothing is uploaded

The sorting happens in your browser with no server round trip, which is what makes it safe for a list of real names, email addresses or anything else you would not paste into an unfamiliar site. The tool only reorders lines — it does not spell-check, translate or send your text to a model. Closing the tab discards it.

08

Frequently asked questions

How do I sort a list alphabetically?

Paste it with one item per line and pick A to Z. The result appears immediately and can be copied in one click.

Why is item 10 sorting before item 2?

That is normal alphabetical ordering comparing character by character. Turn on numeric mode and the digits are read as numbers, which puts item 2 first.

Can I remove duplicates at the same time?

Yes. Duplicates are removed after sorting, so you get a list that is both ordered and unique. If removing duplicates is all you need, there is a dedicated tool for it.

Does it handle non-English text?

Yes. Comparison follows the reading locale, so accented and non-Latin characters order the way a reader of that language expects rather than by character code.

Is my list sent anywhere?

No. It stays in your browser.

Missing a tool, or found a bug?We build Tooleem around what you need. Tell us what to add or fix.
Tell us