ToolSink

Alphabetical Sorter

Sort a list of lines A→Z or Z→A. Case-sensitive, case-insensitive, natural or by length.

What is the Alphabetical Sorter?

The Alphabetical Sorter reorders a list of lines A→Z or Z→A, with case-sensitive, case-insensitive, natural (so "file2" comes before "file10") and by-length modes. Optional trimming and de-duplication clean up messy lists in the same pass.

Each input line is treated as one item, which preserves spaces inside names and phrases. Natural ordering is particularly useful for filenames and identifiers containing numbers, while length ordering quickly surfaces the shortest or longest entries.

Sorting runs client-side, so private lists — names, emails, candidates — stay on your device. Trimming can remove accidental spaces around each line before comparison, and de-duplication can reduce a copied list to unique entries in the same workflow.

How to use the Alphabetical Sorter

  1. 1Paste your list into the input box, one item per line.
  2. 2Pick the sort key: alphabetical, natural or length.
  3. 3Pick the direction: ascending or descending.
  4. 4Optionally toggle "Trim lines" and "Remove duplicates".
  5. 5Copy the sorted output or apply it back to the input.

When to use the Alphabetical Sorter

  • Alphabetize a copied list of attendees, products, cities or bibliography entries.
  • Put filenames such as chapter2 and chapter10 into human-friendly numeric order.
  • Remove duplicate email addresses after trimming spaces from a pasted export.
  • Sort headlines, labels or keywords by length to check interface and layout constraints.

Key features

  • Case-sensitive and case-insensitive modes
  • Natural sort (numbers inside strings sort numerically)
  • Sort by length
  • Deduplicate and trim options
  • Handles thousands of lines

Frequently asked questions

What is natural sort?

It sorts numbers inside strings the way humans expect — "file2" before "file10", not after.

Does it handle accented characters?

Yes — sorting uses localeCompare, so é sorts near e.

What does case-sensitive sorting change?

It treats uppercase and lowercase forms as distinct during comparison. Use case-insensitive mode when Apple and apple should be grouped together.

Does removing duplicates ignore capitalization?

Duplicate behavior follows the tool’s comparison options. Review the result when your list contains variants such as Name, name and trailing spaces.

Tap any tool to jump straight in — no signup, works on mobile.

View all →