Text Sorter Online
Sort lines alphabetically, by length, or naturally. Remove duplicates and filter blank lines.
When to use Text Sorter
Order a line-based list alphabetically, naturally or by length.
How to use Text Sorter
Paste one item per line, choose sort direction and mode, and review trimming, empty-line and duplicate options.
Worked example
Natural ascending order: item10, item2 → item2, item10How the tool handles input
Alphabetic sorting uses localeCompare. Natural sorting enables numeric comparison and base sensitivity. Length sorting uses UTF-16 length with alphabetic tie-breaking. Trimming and empty-line removal are enabled initially.
Limitations
Ordering can vary with browser locale. The ignore-case option currently affects duplicate matching, not the alphabetic comparator. Natural mode is not a decimal-number parser. Multi-line CSV records are not understood.
Frequently asked questions
Does sorting modify the original line case?
No. Comparisons can ignore case, but retained line text preserves its case.
What are the main limitations?
Ordering can vary with browser locale. The ignore-case option currently affects duplicate matching, not the alphabetic comparator. Natural mode is not a decimal-number parser. Multi-line CSV records are not understood.