Related Tools
How to Use
- 1Enter or paste lines of text into the input area.
- 2Toggle Reverse to sort Z→A instead of A→Z.
- 3Toggle Case-Insensitive to treat uppercase and lowercase as equal.
- 4Click 'Sort Lines' to process the text.
- 5Copy the sorted result to your clipboard.
About Text Sorter
The Text Sorter arranges lines alphabetically (A→Z or Z→A) with optional case-insensitive comparison. Empty and blank lines are automatically removed from the output, leaving only clean, sorted content ready to copy.
Useful for organizing name lists, email address files, CSV column data, DNS records, configuration file entries, glossary terms, or any multi-line content that needs alphabetical ordering. The sort handles thousands of lines efficiently with instant results.
Sorting uses lexicographic (Unicode code point) ordering by default. In case-sensitive mode, uppercase letters sort before lowercase ('Apple' before 'banana'). Enable Case-Insensitive to sort purely by letter regardless of case. For numbers, sorting is alphabetical by default ('10' sorts before '2') — zero-pad numeric lines ('010', '002') if you need true numeric order. All processing runs locally in your browser, keeping your data private and secure.
Frequently Asked Questions
Are empty lines removed from the output?
Yes. Blank lines are filtered out before sorting so the output contains only non-empty, sorted lines.
Can I sort numbers numerically?
Sorting is alphabetical (lexicographic) by default, so '10' comes before '2'. For true numeric sorting, ensure numbers are zero-padded or use a spreadsheet.
Is sorting case-sensitive by default?
Yes. 'Apple' sorts before 'banana' because uppercase letters have lower Unicode code points. Enable case-insensitive mode to treat them equally.
Can I sort a comma-separated list?
This tool sorts line-by-line. Put each item on its own line first, sort, then use the Remove Line Breaks tool to rejoin into a comma-separated string.
Is my text sent to a server?
No. All processing runs locally in your browser. Your text never leaves your device.