Sort Lines
Paste a list and choose the order. Natural sorting puts item2 before item10, and options handle case, duplicates and blank lines.
Sorted
Paste lines to sort them.
About this tool
Sorting lists is a daily chore: names, email addresses, keywords, file names, log entries, CSV columns pasted from a spreadsheet. This tool uses the browser's locale-aware collation, so accented letters sort where a person expects and numbers inside text are compared by value. Numeric mode extracts the first number in each line and sorts by it, which is handy for prices or measurements with units.
Length order helps find the longest headlines or shortest slugs; reverse flips the current order; shuffle randomises for draws and quizzes. Combine with Remove duplicates and Trim spaces to clean a list in one step.
Frequently asked questions
- What is natural sort order?
- Numbers inside text are compared by value: file2 comes before file10, whereas plain character order would put file10 first.
- Does Ignore case change the output?
- Only the comparison ignores case; lines keep their original capitalisation.
- How do I sort a comma-separated list?
- Replace the commas with line breaks first (the Find and Replace tool does that), sort, then join again.