Text Line Sorter
Sort lines of text alphabetically, by length, or randomly. Remove duplicate lines and empty lines in one click. Free online tool.
How to Use
Enter your text
Paste or type your text into the left textarea — one item per line. Works great for name lists, URL collections, or word lists.
Choose a sort mode
Select from A→Z, Z→A, length ascending, length descending, or random shuffle.
Apply options and copy
Toggle case-sensitivity, duplicate removal, and empty-line removal. Copy the result from the right panel.
FAQ
- Paste your list (one item per line) into the input and click 'A → Z'. The result appears instantly in the right panel. Click 'Z → A' for reverse alphabetical order.
- Yes. Check 'Remove duplicates' to keep only the first occurrence of each line. With 'Case-sensitive' off, 'Apple', 'apple', and 'APPLE' are treated as the same value.
- Common uses: sorting name lists, deduplicating URL collections, organizing code variable lists, and cleaning up glossaries. The 'Remove empty lines' option removes extra blank lines that sneak in from copy-pasting.
- No. All sorting happens entirely in your browser. Your text is never sent to any external server.