Search tools...

Text Sorter

Sort, deduplicate, and transform lines of text online

Updated Mar 2026100% Private — runs in browser
Input
Output

Click an operation to sort your lines

How to Use Text Sorter

  1. 1

    Paste your text into the input panel — one item per line.

  2. 2

    Select a delimiter if your data is comma, tab, or pipe-separated.

  3. 3

    Click a sort button — A→Z, Z→A, Shortest, Longest, Reverse, or Shuffle.

  4. 4

    Use Remove Duplicates or Remove Empty Lines to clean up.

  5. 5

    Copy the result or download as a .txt file.

About Text Sorter

Sort lines of text alphabetically, by length, or randomly. Remove duplicates, trim whitespace, number lines, and more — free online text sorting tool.

Key Features

  • Multiple Sort Modes: A–Z, Z–A, shortest first, longest first, reverse, and shuffle.
  • Deduplication: Remove duplicate lines with case-sensitive or case-insensitive matching.
  • Text Transforms: Trim whitespace, capitalize, uppercase, lowercase, number lines, and more.
  • Delimiter Support: Works with newline, comma, tab, semicolon, and pipe-separated data.
  • Natural Sort: Sorts "item2" before "item10" — ideal for filenames and version numbers.
  • Live Preview: See output update automatically as you type.
  • Undo Support: Step back through the last 10 operations.

Privacy

All processing happens in your browser. Your text never leaves your device.

Frequently Asked Questions about Text Sorter

Related Tools