AnyNPC
Lines: 0After: 0
Input Text
Output
One item per line...

Text Sorter — Sort Lines and Remove Duplicates

Free online text sorter tool. Sort lines alphabetically (A-Z or Z-A), by line length (shortest to longest or vice versa), shuffle lines randomly, reverse line order, and remove duplicates. Clean up lists with one click — trim whitespace, remove empty lines, and deduplicate. Perfect for organizing data lists, cleaning up exports, and preparing text for processing. 100% browser-based — no data upload required.

Features

  • Sort lines alphabetically A–Z (ascending) and Z–A (descending)
  • Sort by line length — shortest first or longest first
  • Remove duplicate lines (case-sensitive or case-insensitive)
  • Remove empty lines and trim whitespace from each line
  • Shuffle lines randomly for randomization tasks
  • Reverse line order to flip the entire list
  • Live line count before and after processing
  • One-click copy results to clipboard
  • Sample text to quickly test sorting options
  • 100% browser-based — your text never leaves your device

How to Use

  1. 1Paste or type your text (one item per line) into the input area.
  2. 2Choose a sorting action: Sort A–Z, Sort Z–A, Sort by Length, Reverse, or Shuffle.
  3. 3Toggle deduplication options: remove exact duplicates or case-insensitive duplicates.
  4. 4Toggle 'Remove empty lines' and 'Trim whitespace' for cleaner output.
  5. 5Click 'Copy' to copy the processed result to your clipboard.

Frequently Asked Questions

Related Tools