About Sort Lines
Reorder line-based lists with locale-aware alphabetical or numeric sorting, optional cleanup, and duplicate removal.
Sort Lines splits the input at line boundaries and applies either locale-aware alphabetical ordering or numeric comparison. Cleanup options can trim values, remove blank lines, and deduplicate before sorting.
How to use it
- Enter or select your source data.
- Adjust the available options and run the tool.
- Review, copy, or download the result.
Common use cases
- Alphabetize names, tags, domains, or configuration keys.
- Order one-number-per-line exports numerically instead of lexicographically.
- Clean and sort a pasted list before committing it to documentation or source control.
Worked example
Sort 20, 3, 11 numerically to get 3, 11, 20.
Limitations and responsible use
- Numeric mode expects each complete line to represent a number; mixed text may produce an unhelpful order.
- Alphabetical results use the browser locale and may differ slightly between languages or devices.
- The tool does not sort CSV rows by a selected column.
Frequently asked questions
Why does alphabetical sorting put 10 near 2?
Alphabetical mode uses natural string comparison. Select numeric mode when every line is a number.
Can it remove duplicates while sorting?
Yes. Enable duplicate removal and choose whether capitalization should matter.