Text Tools

Text Line Sorter

Sort lines alphabetically or numerically

Sort lines of text alphabetically (A–Z or Z–A), numerically, or by line length — with case-sensitive or case-insensitive modes. Clean up lists, sort data, and organize content instantly in your browser.

How to Use Text Line Sorter

  1. 1Paste your text lines into the input box
  2. 2Select sort type: A–Z, Z–A, numeric, or by line length
  3. 3Toggle case sensitivity if needed
  4. 4Click "Sort" to reorder the lines — results appear instantly
  5. 5Copy the sorted output or combine with Remove Duplicate Lines for a complete text cleanup workflow

Features

  • Alphabetical A–Z and Z–A sorting with case-sensitive and case-insensitive modes
  • Numerical sorting that handles mixed text/numbers correctly (10 comes after 9)
  • Sort by line length (shortest or longest first) with optional blank line removal
  • Handles thousands of lines instantly — all processing is browser-local

Frequently Asked Questions

Can it sort numbers correctly?

Yes. Numeric sort handles numbers as numbers, so 10 comes after 9 (not after 1 as in alphabetical sort). Mixed text lines fallback to alphabetical comparison.

Can I deduplicate after sorting?

Yes. Use the Remove Duplicate Lines tool alongside for a complete list cleanup workflow.