Sort Text

Sort lines alphabetically, reverse order, by length, or randomly shuffle. Remove duplicates and customize your sort.

Input
Lines: 0
Characters: 0
Sorted Output
Lines: 0
Characters: 0
help_outline How It Works
  1. Enter text with each item on a new line in the left panel
  2. Click a sort button: A-Z, Z-A, Short-Long, Long-Short, Random, or Reverse
  3. Toggle options: remove duplicates, remove empty lines, ignore case, trim whitespace
  4. See sorted results instantly appear in the right panel
  5. Copy output or swap between panels for further sorting
quiz Frequently Asked Questions
Is the Sort Text tool free to use?
Yes, ApexSofteck Tools's Sort Text is completely free. Sort unlimited lines without any registration required.
How does the "Random" sort work?
Random uses the Fisher-Yates shuffle algorithm to randomly rearrange all lines. Each click produces a different random order.
What does "Ignore case when sorting" do?
When enabled, uppercase and lowercase letters are treated the same (A=a). When disabled, uppercase letters come before lowercase (A-Z before a-z).
Can I remove duplicates while sorting?
Yes! Check "Remove duplicates" to eliminate duplicate lines before or after sorting. Combined with "Trim whitespace" for best results.
Is my data secure?
Absolutely. All sorting happens in your browser. Your text is never sent to any server or stored anywhere.
tag Popular Tags