ToolBoxOnline

Text Sorter

Sort lines of text alphabetically, by length, numerically, or randomly. Remove duplicates, ignore case, trim whitespace. Ideal for cleaning up lists, organizing data, and preparing ordered content.

Share this tool

You have a list of 200 email addresses, unsorted, with duplicates and trailing spaces. You need them alphabetized, deduped, and clean. Paste them here. Click A→Z, check Remove Duplicates and Trim Lines. Done in one click.
Your sorted text will appear here
0 lines

How to Use This Tool

  1. Paste or type your text into the input area — one item per line.
  2. Choose a sort mode: A→Z, Z→A, By Length, Random, Reverse, or Numeric.
  3. Toggle options: Remove Duplicates, Ignore Case, Trim Lines.
  4. The sorted output appears instantly in the output panel.
  5. Copy the sorted text to your clipboard.

Related Tools

Frequently Asked Questions

What does 'By Length' sort do?

By Length sorts lines from shortest to longest (ascending). The By Length ↓ option sorts from longest to shortest (descending). This is useful for finding the longest or shortest entries in a list, or for organizing content by verbosity.

How does Numeric sort work?

Numeric sort treats each line as a number and sorts by numeric value (1, 2, 10, 20) instead of alphabetical order (1, 10, 2, 20). Lines that are not valid numbers are placed at the end. This is useful for sorting version numbers, quantities, or any numeric data.

What does Randomize do?

Randomize shuffles the lines into a random order using the Fisher-Yates algorithm. Each click produces a different order. This is useful for randomizing quiz questions, creating randomized assignment lists, or picking a random winner from a list.

Is my text sent to any server?

No. All sorting and processing happens locally in your browser. Your text never leaves your device.

Can I sort CSV data with this tool?

You can sort CSV data line by line, but the tool treats each line as a single string — it doesn't parse CSV columns. For sorting by a specific CSV column, you'd need a spreadsheet tool. For simple line-by-line sorting of CSV data, this tool works fine.