About this tool
This tool sorts a block of text line by line. Alphabetical sorting uses natural ordering (so 'item2' comes before 'item10'), and numeric sorting compares the lines as numbers. You can sort ascending or descending and ignore case.
Extra options let you strip blank lines and remove duplicates as part of the sort, turning a messy list into a clean, ordered one in a single step. Paste your lines, choose the options, and copy the sorted output.
Sorting happens locally — your text never leaves your browser.
Frequently asked questions
What's the difference between alphabetical and numeric sorting?
Alphabetical compares text with natural ordering, so '2' sorts before '10'. Numeric reads each line as a number and orders by value, which is what you want for pure number lists.
Can it sort case-insensitively?
Yes — enable case-insensitive sorting to order 'Banana' and 'apple' the way a dictionary would, ignoring capitalization.
Can I dedupe while sorting?
Yes — turn on remove-duplicates to drop repeated lines as part of sorting. For dedupe that preserves the original order instead, use the remove duplicate lines tool.