Text Sorter
Sort lines of text alphabetically, by length, numerically or in random order.
Perfect for cleaning lists, email lists, tags, CSV fragments and log lines.
Need to remove duplicate entries? Try the Duplicate Line Remover. Want to clean up whitespace-only lines? Use the Remove Blank Lines. To analyse which words appear most, try the Word Frequency Analyzer.
How to Use the Text Sorter
Paste your text into the top box. Each line is treated as a separate item. Choose a sort mode (such as A–Z or by length), adjust the options, then click Sort Lines. The sorted result appears in the bottom box and can be copied with one click.
Features
- Sort lines alphabetically (A–Z, Z–A)
- Sort by line length (shortest → longest or reverse)
- Numeric sorting for number lists
- Random shuffle mode
- Case-insensitive sorting option
- Trim whitespace and remove empty lines
- Optional duplicate line removal
- Privacy-friendly — everything runs in your browser
Common Use Cases
Cleaning lists
Sort and tidy lists of names, tags, tasks, or email addresses.
Preparing data for spreadsheets
Sort CSV fragments or value lists before importing into a spreadsheet or database.
Working with logs and technical text
Sort log lines or error messages to group similar entries together.
FAQ
Does this change the original order forever?
The original text stays in the top box. The sorted version appears in the bottom box, so you can always go back or adjust the options and sort again.
Does “Case-insensitive sort” affect numbers?
No — numeric sorting modes ignore case and treat each line as a number if possible.
How does random shuffle work?
It uses a standard random shuffle (Fisher–Yates) so each line has an equal chance of appearing in any position.
Is my text uploaded or stored?
No — all sorting happens in your browser. Nothing is uploaded or saved online.