Home Text Tools Encoding Hashing Generators Developer Converters Text Styles Image Tools

Sort Lines

Sort lines of text alphabetically, numerically, by length, or randomly. Remove duplicates and control sort order.

All processing happens in your browser. No data is sent to any server.
Settings
Input 0
Output 0

How It Works

The Sort Lines tool rearranges the lines of your text according to the selected sorting method. Each line is treated as an individual item to be sorted.

Available sorting methods:

  • A → Z — Standard alphabetical sort from A to Z.
  • Z → A — Reverse alphabetical sort from Z to A.
  • Numeric — Sorts lines by their leading numeric value, handling decimal numbers correctly.
  • By length — Sorts lines by character count, shortest or longest first.
  • Random — Shuffles lines into a random order using the Fisher-Yates algorithm.

Enable case sensitive mode to distinguish between uppercase and lowercase letters during comparison. Toggle remove duplicates to eliminate repeated lines before sorting. All processing runs entirely in your browser. No text is transmitted to any server.