line sorter

How to use the line sorter

  1. Paste your list of lines into the input area.
  2. Pick a sort: alphabetical (A-Z or Z-A), numeric, length, or reverse.
  3. Toggle 'remove duplicates' and 'trim whitespace' — both run after sort.
  4. Copy the sorted output.

When to use it

Sorting lines is a quick way to dedupe email lists, organize CSV columns before import, reorder a long import block alphabetically, or prepare word lists. For huge datasets (>100k lines), use a dedicated CLI (sort | uniq) — browser-based sort stays fast up to a few thousand lines. Alternative: Notepad++ or VS Code with the Sort Lines command covers the same functionality inside your editor.

Frequently asked questions

Is sort order case-sensitive?
By default, yes — uppercase letters sort before lowercase. Toggle 'case-insensitive' to treat A and a as equivalent.
Does numeric sort handle mixed alphanumeric?
Numeric sort extracts leading numbers from each line — 'item2' sorts before 'item10'. Purely numeric lines sort strictly by value.
How do I sort by length?
Pick the 'length' mode — shortest to longest, reversible.
Will this modify my whitespace?
Only if 'trim whitespace' is on. By default, sorting is lossless — leading/trailing spaces are preserved.

Related tools

Last updated: 2026-04-22